for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* SocialConnect project
* @author: Patsura Dmitry https://github.com/ovr <[email protected]>
*/
namespace Test;
use SocialConnect\Auth\Service;
class TestCase extends \PHPUnit\Framework\TestCase
{
protected function getService()
$httpClient = $this->getMockBuilder(\SocialConnect\Common\Http\Client\Curl::class)
->disableOriginalConstructor()
->disableProxyingToOriginalMethods()
->getMock();
$session = $this->getMockBuilder(\SocialConnect\Provider\Session\Session::class)
$service = new Service(
$httpClient,
$session,
array(
'provider' => array(
'Vk' => array(
'applicationId' => 123456,
'applicationSecret' => 'Secret'
)
),
null
);
return $service;
}