diff options
author | Vladimir Reznichenko <kalessil@gmail.com> | 2015-03-06 20:37:36 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-03-07 08:38:01 +0100 |
commit | 05fec30b749b3940e13a1115de6be46682de14dc (patch) | |
tree | 173185af0948bb2eb3db3e713fbae19d8cb59225 /Tests/Http | |
parent | 5d5a4e20a8f5db004e045a5b8137a6d455272ee4 (diff) | |
download | symfony-security-05fec30b749b3940e13a1115de6be46682de14dc.zip symfony-security-05fec30b749b3940e13a1115de6be46682de14dc.tar.gz symfony-security-05fec30b749b3940e13a1115de6be46682de14dc.tar.bz2 |
[2.3] [Config] [Console] [DependencyInjection] [DomCrawler] [Form] [HttpKernel] [PropertyAccess] [Security] [Translation] [Yaml] static code analysis, code cleanup
Diffstat (limited to 'Tests/Http')
-rw-r--r-- | Tests/Http/Firewall/ExceptionListenerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/Http/Firewall/ExceptionListenerTest.php b/Tests/Http/Firewall/ExceptionListenerTest.php index b1c7622..12f18a6 100644 --- a/Tests/Http/Firewall/ExceptionListenerTest.php +++ b/Tests/Http/Firewall/ExceptionListenerTest.php @@ -177,9 +177,9 @@ class ExceptionListenerTest extends \PHPUnit_Framework_TestCase private function createExceptionListener(SecurityContextInterface $context = null, AuthenticationTrustResolverInterface $trustResolver = null, HttpUtils $httpUtils = null, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null) { return new ExceptionListener( - $context ? $context : $this->getMock('Symfony\Component\Security\Core\SecurityContextInterface'), - $trustResolver ? $trustResolver : $this->getMock('Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface'), - $httpUtils ? $httpUtils : $this->getMock('Symfony\Component\Security\Http\HttpUtils'), + $context ?: $this->getMock('Symfony\Component\Security\Core\SecurityContextInterface'), + $trustResolver ?: $this->getMock('Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface'), + $httpUtils ?: $this->getMock('Symfony\Component\Security\Http\HttpUtils'), 'key', $authenticationEntryPoint, $errorPage, |