summaryrefslogtreecommitdiffstats
path: root/Http/Tests
diff options
context:
space:
mode:
authorNicolas Grekas <nicolas.grekas@gmail.com>2015-07-24 10:19:55 +0200
committerNicolas Grekas <nicolas.grekas@gmail.com>2015-07-24 10:19:55 +0200
commit9aa9f4801b98bccbf1ec6b93d1f36aea43829be7 (patch)
treec618f06a34ea4a171c10a15778a8354147e98c39 /Http/Tests
parent3570d0fe102983c1b7c631e148e1b477f31e1a7f (diff)
parent79b1d65ad79a2650fdc6b2849604dc9fb9759c4a (diff)
downloadsymfony-security-9aa9f4801b98bccbf1ec6b93d1f36aea43829be7.zip
symfony-security-9aa9f4801b98bccbf1ec6b93d1f36aea43829be7.tar.gz
symfony-security-9aa9f4801b98bccbf1ec6b93d1f36aea43829be7.tar.bz2
Merge branch '2.6' into 2.7
* 2.6: [2.6] Static Code Analysis for Components [Security/Http] Fix test relying on a private property
Diffstat (limited to 'Http/Tests')
-rw-r--r--Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php b/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php
index dcd672b..3450c1e 100644
--- a/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php
+++ b/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php
@@ -54,10 +54,9 @@ class AnonymousAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
$authenticationManager
->expects($this->once())
->method('authenticate')
- ->with(self::logicalAnd(
- $this->isInstanceOf('Symfony\Component\Security\Core\Authentication\Token\AnonymousToken'),
- $this->attributeEqualTo('key', 'TheKey')
- ))
+ ->with($this->callback(function ($token) {
+ return 'TheKey' === $token->getKey();
+ }))
->will($this->returnValue($anonymousToken))
;