upgrade
This commit is contained in:
20
plugin/ims_lti/vendor/oauth1/tests/OAuthTokenTest.php
vendored
Normal file
20
plugin/ims_lti/vendor/oauth1/tests/OAuthTokenTest.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
require_once 'common.php';
|
||||
|
||||
class OAuthTokenTest extends PHPUnit_Framework_TestCase {
|
||||
public function testSerialize() {
|
||||
$token = new OAuthToken('token', 'secret');
|
||||
$this->assertEquals('oauth_token=token&oauth_token_secret=secret', $token->to_string());
|
||||
|
||||
$token = new OAuthToken('token&', 'secret%');
|
||||
$this->assertEquals('oauth_token=token%26&oauth_token_secret=secret%25', $token->to_string());
|
||||
}
|
||||
public function testConvertToString() {
|
||||
$token = new OAuthToken('token', 'secret');
|
||||
$this->assertEquals('oauth_token=token&oauth_token_secret=secret', (string) $token);
|
||||
|
||||
$token = new OAuthToken('token&', 'secret%');
|
||||
$this->assertEquals('oauth_token=token%26&oauth_token_secret=secret%25', (string) $token);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user