summaryrefslogtreecommitdiffstats
path: root/Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php')
-rw-r--r--Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php b/Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php
index 992eae8..485b828 100644
--- a/Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php
+++ b/Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php
@@ -39,11 +39,15 @@ class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCas
$this->markTestSkipped('The "HttpFoundation" component is not available');
}
+ if (!class_exists('Psr\Log\LoggerInterface')) {
+ $this->markTestSkipped('The "LoggerInterface" is not available');
+ }
+
$this->httpKernel = $this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface');
$this->httpUtils = $this->getMock('Symfony\Component\Security\Http\HttpUtils');
$this->logger = $this->getMock('Psr\Log\LoggerInterface');
- $this->session = $this->getMock('Symfony\Component\HttpFoundation\Session\Session');
+ $this->session = $this->getMock('Symfony\Component\HttpFoundation\Session\SessionInterface');
$this->request = $this->getMock('Symfony\Component\HttpFoundation\Request');
$this->request->expects($this->any())->method('getSession')->will($this->returnValue($this->session));
$this->exception = $this->getMock('Symfony\Component\Security\Core\Exception\AuthenticationException');