[PSR] Fixed Samples

- Using `php-cs-fixer` tool.
This commit is contained in:
Jay Patel
2016-07-14 13:09:36 -05:00
parent cffa2463b1
commit 8c907803e3
130 changed files with 9 additions and 220 deletions

View File

@@ -47,7 +47,7 @@ class OAuthTokenCredentialTest extends \PHPUnit_Framework_TestCase
'cache.enabled' => true,
'cache.FileName' => AuthorizationCacheTest::CACHE_FILE
);
$cred = new OAuthTokenCredential('clientId', 'clientSecret');
$cred = new OAuthTokenCredential('clientId', 'clientSecret');
//{"clientId":{"clientId":"clientId","accessToken":"accessToken","tokenCreateTime":1421204091,"tokenExpiresIn":288000000}}
AuthorizationCache::push($config, 'clientId', $cred->encrypt('accessToken'), 1421204091, 288000000);
@@ -79,7 +79,6 @@ class OAuthTokenCredentialTest extends \PHPUnit_Framework_TestCase
$response = $auth->getRefreshToken($config, 'auth_value');
$this->assertNotNull($response);
$this->assertEquals('refresh_token_value', $response);
}
public function testUpdateAccessTokenUnitMock()
@@ -109,7 +108,6 @@ class OAuthTokenCredentialTest extends \PHPUnit_Framework_TestCase
$response = $auth->updateAccessToken($config, 'refresh_token');
$this->assertNotNull($response);
$this->assertEquals('accessToken', $response);
}
/**
@@ -137,7 +135,5 @@ class OAuthTokenCredentialTest extends \PHPUnit_Framework_TestCase
$response = $auth->updateAccessToken($config);
$this->assertNotNull($response);
$this->assertEquals('accessToken', $response);
}
}