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\Provider\OAuth1;
use SocialConnect\OAuth1\AccessToken;
class AccessTokenTest extends \Test\TestCase
{
public function testConstructMethod()
$token = new AccessToken('key', 'secret');
$this->assertEquals('key', $token->getKey());
$this->assertEquals('secret', $token->getSecret());
return $token;
}
public function testGetUserId()
$token = $this->testConstructMethod();
$this->assertNull($token->getUserId());
$userId = 12345;
$token->setUserId($userId);
$this->assertSame($userId, $token->getUserId());