summaryrefslogtreecommitdiffstats
path: root/Http/Tests/Authentication
diff options
context:
space:
mode:
authorAlex Bakhturin <abakhturin@fb.com>2014-09-30 09:39:19 -0700
committerFabien Potencier <fabien.potencier@gmail.com>2014-10-01 07:27:37 +0200
commitd4fd86c3d1a4f409cf8a0d399ec8d89a7fa73426 (patch)
tree655afa4fb302e1ebfa388fe5630c6c69b618625b /Http/Tests/Authentication
parent14ca1a79c7396ff033f094d4e8da010ecb9e5fef (diff)
downloadsymfony-security-d4fd86c3d1a4f409cf8a0d399ec8d89a7fa73426.zip
symfony-security-d4fd86c3d1a4f409cf8a0d399ec8d89a7fa73426.tar.gz
symfony-security-d4fd86c3d1a4f409cf8a0d399ec8d89a7fa73426.tar.bz2
[Security][Http][Authentication] Make a test pass on HHVM
Diffstat (limited to 'Http/Tests/Authentication')
-rw-r--r--Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php b/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php
index 507addc..930d35c 100644
--- a/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php
+++ b/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php
@@ -37,7 +37,8 @@ class SimpleAuthenticationHandlerTest extends \PHPUnit_Framework_TestCase
$this->request = $this->getMock('Symfony\Component\HttpFoundation\Request');
$this->token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface');
- $this->authenticationException = $this->getMock('Symfony\Component\Security\Core\Exception\AuthenticationException');
+ // No methods are invoked on the exception; we just assert on its class
+ $this->authenticationException = new \Symfony\Component\Security\Core\Exception\AuthenticationException();
$this->response = $this->getMock('Symfony\Component\HttpFoundation\Response');
}