From 7ff903ed39c0b61864f1e20ee7293c1a636b5208 Mon Sep 17 00:00:00 2001 From: Alex Bakhturin Date: Tue, 30 Sep 2014 09:39:19 -0700 Subject: [PATCH] [Security][Http][Authentication] Make a test pass on HHVM --- .../Tests/Authentication/SimpleAuthenticationHandlerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php index 507addc817..930d35c08b 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php +++ b/src/Symfony/Component/Security/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'); }