Add test for NullToken.
This commit is contained in:
parent
d94446782a
commit
7457f612b7
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use GaryJones\OAuth\Token;
|
use GaryJones\OAuth\Token;
|
||||||
|
use GaryJones\OAuth\NullToken;
|
||||||
use GaryJones\OAuth\Util;
|
use GaryJones\OAuth\Util;
|
||||||
|
|
||||||
class TokenTest extends PHPUnit_Framework_TestCase
|
class TokenTest extends PHPUnit_Framework_TestCase
|
||||||
@ -19,4 +20,11 @@ class TokenTest extends PHPUnit_Framework_TestCase
|
|||||||
'&oauth_token_secret=' . Util::urlencodeRfc3986('bar');
|
'&oauth_token_secret=' . Util::urlencodeRfc3986('bar');
|
||||||
$this->assertEquals($string, $token->toString());
|
$this->assertEquals($string, $token->toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testNullTokenKeyAndSecretAreEmpty()
|
||||||
|
{
|
||||||
|
$token = new NullToken();
|
||||||
|
$this->assertEmpty($token->getKey());
|
||||||
|
$this->assertEmpty($token->getSecret());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user