diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-11-10 14:34:42 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-11-10 14:34:42 +0100 |
commit | 8b79dc69a34467ae2cab5e98aba73ab3b5221605 (patch) | |
tree | 14b7c581c3eebe69719f5a5000a2a051a0a13984 /Core/Tests/Authentication | |
parent | a24ab6c7c436dfbb3b690e28425b8f0af8b65e6d (diff) | |
parent | b78eacaa57a9b0171fd4817b99510ab15f60d778 (diff) | |
download | symfony-security-8b79dc69a34467ae2cab5e98aba73ab3b5221605.zip symfony-security-8b79dc69a34467ae2cab5e98aba73ab3b5221605.tar.gz symfony-security-8b79dc69a34467ae2cab5e98aba73ab3b5221605.tar.bz2 |
Merge branch '2.8'v3.0.0-BETA1
* 2.8:
Fixed tabs when there are several groups of tabs in the same page
Fix mode
Fixed failing test for HHVM
Removed unused logic in MockStream
Update coding standard for MockStream
[Filesystem] added tempnam() stream wrapper aware version of PHP's native tempnam() and fixed dumpFile to allow dumping to streams
Renamed key to secret
Diffstat (limited to 'Core/Tests/Authentication')
-rw-r--r-- | Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php b/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php index 5b71747..8f4b392 100644 --- a/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php +++ b/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php @@ -33,7 +33,7 @@ class AnonymousAuthenticationProviderTest extends \PHPUnit_Framework_TestCase /** * @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException */ - public function testAuthenticateWhenKeyIsNotValid() + public function testAuthenticateWhenSecretIsNotValid() { $provider = $this->getProvider('foo'); @@ -48,19 +48,19 @@ class AnonymousAuthenticationProviderTest extends \PHPUnit_Framework_TestCase $this->assertSame($token, $provider->authenticate($token)); } - protected function getSupportedToken($key) + protected function getSupportedToken($secret) { $token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\AnonymousToken', array('getSecret'), array(), '', false); $token->expects($this->any()) ->method('getSecret') - ->will($this->returnValue($key)) + ->will($this->returnValue($secret)) ; return $token; } - protected function getProvider($key) + protected function getProvider($secret) { - return new AnonymousAuthenticationProvider($key); + return new AnonymousAuthenticationProvider($secret); } } |