Fancybox is deprecated
This commit is contained in:
parent
f347ddbfc4
commit
5f781acfdf
234 changed files with 29623 additions and 0 deletions
38
x-twitter/vendor/abraham/twitteroauth/tests/TokenTest.php
vendored
Normal file
38
x-twitter/vendor/abraham/twitteroauth/tests/TokenTest.php
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Abraham\TwitterOAuth\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Abraham\TwitterOAuth\Token;
|
||||
|
||||
class TokenTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider tokenProvider
|
||||
*/
|
||||
public function testToString($expected, $key, $secret)
|
||||
{
|
||||
$token = new Token($key, $secret);
|
||||
|
||||
$this->assertEquals($expected, $token->__toString());
|
||||
}
|
||||
|
||||
public function tokenProvider()
|
||||
{
|
||||
return [
|
||||
['oauth_token=key&oauth_token_secret=secret', 'key', 'secret'],
|
||||
[
|
||||
'oauth_token=key%2Bkey&oauth_token_secret=secret',
|
||||
'key+key',
|
||||
'secret',
|
||||
],
|
||||
[
|
||||
'oauth_token=key~key&oauth_token_secret=secret',
|
||||
'key~key',
|
||||
'secret',
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue