]> git.mxchange.org Git - friendica-addons.git/blob - twitter/vendor/abraham/twitteroauth/tests/TokenTest.php
Add explicit dependencies to twitter addon
[friendica-addons.git] / twitter / vendor / abraham / twitteroauth / tests / TokenTest.php
1 <?php
2
3 namespace Abraham\TwitterOAuth\Tests;
4
5 use Abraham\TwitterOAuth\Token;
6
7 class TokenTest extends \PHPUnit_Framework_TestCase {
8     /**
9      * @dataProvider tokenProvider
10      */
11     public function testToString($expected, $key, $secret)
12     {
13         $token = new Token($key, $secret);
14
15         $this->assertEquals($expected, $token->__toString());
16     }
17
18     public function tokenProvider()
19     {
20         return [
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'],
24         ];
25     }
26 }