[Security][Http][Authentication] Make a test pass on HHVM

This commit is contained in:
Alex Bakhturin 2014-09-30 09:39:19 -07:00 committed by Fabien Potencier
parent 6e534f2023
commit 7ff903ed39
1 changed files with 2 additions and 1 deletions

View File

@ -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');
}