diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2013-12-29 15:44:35 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2013-12-29 15:44:35 +0100 |
commit | bfa00f76487ab8df6967cba49dc4cbbf3a28477c (patch) | |
tree | f197d72a5a1ddc9933d08410f2659752b7ea842c | |
parent | 1d7396ae0b4d14f2a7e84436afc10d65d75ba644 (diff) | |
download | symfony-security-bfa00f76487ab8df6967cba49dc4cbbf3a28477c.zip symfony-security-bfa00f76487ab8df6967cba49dc4cbbf3a28477c.tar.gz symfony-security-bfa00f76487ab8df6967cba49dc4cbbf3a28477c.tar.bz2 |
[Security] simplified some unit tests
-rw-r--r-- | Tests/Http/Firewall/ExceptionListenerTest.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Tests/Http/Firewall/ExceptionListenerTest.php b/Tests/Http/Firewall/ExceptionListenerTest.php index 6e996cd..bc19da4 100644 --- a/Tests/Http/Firewall/ExceptionListenerTest.php +++ b/Tests/Http/Firewall/ExceptionListenerTest.php @@ -166,13 +166,7 @@ class ExceptionListenerTest extends \PHPUnit_Framework_TestCase $kernel = $this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface'); } - $event = new GetResponseForExceptionEvent($kernel, Request::create('/'), HttpKernelInterface::MASTER_REQUEST, $exception); - - // FIXME: to be removed in 2.4 - $dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'); - $event->setDispatcher($dispatcher); - - return $event; + return new GetResponseForExceptionEvent($kernel, Request::create('/'), HttpKernelInterface::MASTER_REQUEST, $exception); } private function createExceptionListener(SecurityContextInterface $context = null, AuthenticationTrustResolverInterface $trustResolver = null, HttpUtils $httpUtils = null, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null) |