3 namespace Abraham\TwitterOAuth\Tests;
5 use Abraham\TwitterOAuth\Token;
7 class TokenTest extends \PHPUnit_Framework_TestCase {
9 * @dataProvider tokenProvider
11 public function testToString($expected, $key, $secret)
13 $token = new Token($key, $secret);
15 $this->assertEquals($expected, $token->__toString());
18 public function tokenProvider()
21 ['oauth_token=key&oauth_token_secret=secret', 'key', 'secret'],
22 ['oauth_token=key%2Bkey&oauth_token_secret=secret', 'key+key', 'secret'],
23 ['oauth_token=key~key&oauth_token_secret=secret', 'key~key', 'secret'],