diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2014-10-01 07:53:11 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2014-10-01 07:53:11 +0200 |
commit | 70e47b18c5c0fa3ba18cbcbc5ac985737cf2cbda (patch) | |
tree | 81f88c6b3803242e288875dc632fdcfe84089010 /Http/Tests/Authentication | |
parent | e70cd1cffa71f5d45b3b47d0ef4f5ac4e49db0fa (diff) | |
parent | f9854a99b470ae387d229f200d6b9ee9647c11a0 (diff) | |
download | symfony-security-70e47b18c5c0fa3ba18cbcbc5ac985737cf2cbda.zip symfony-security-70e47b18c5c0fa3ba18cbcbc5ac985737cf2cbda.tar.gz symfony-security-70e47b18c5c0fa3ba18cbcbc5ac985737cf2cbda.tar.bz2 |
Merge branch '2.5'
* 2.5:
[Doc] Use Markdown syntax highlighting
[Finder] tweaked docs
[Finder] Add info about possibilities offered by SplFileInfo
fixed CS
[Security][Http][Authentication] Make a test pass on HHVM
fix components tests
[Intl] FIxed failing test
[Intl] Generated the data for ICU version 54-rc
[EventDispatcher] fix doc bloc on EventDispatcherInterface
[Validator] Update validators.zh_CN.xlf, fix translation error
bumped Symfony version to 2.5.6
updated VERSION for 2.5.5
updated CHANGELOG for 2.5.5
bumped Symfony version to 2.3.21
updated VERSION for 2.3.20
update CONTRIBUTORS for 2.3.20
updated CHANGELOG for 2.3.20
[Intl] Integrated ICU data into Intl component
Conflicts:
src/Symfony/Component/Debug/README.md
src/Symfony/Component/DependencyInjection/README.md
src/Symfony/Component/HttpKernel/Kernel.php
src/Symfony/Component/OptionsResolver/README.md
Diffstat (limited to 'Http/Tests/Authentication')
-rw-r--r-- | Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php b/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php index 507addc..97167c9 100644 --- a/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php +++ b/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Security\Http\Tests; use Symfony\Component\Security\Core\Authentication\SimpleAuthenticatorInterface; +use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface; use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface; use Symfony\Component\Security\Http\Authentication\SimpleAuthenticationHandler; @@ -37,7 +38,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 AuthenticationException(); $this->response = $this->getMock('Symfony\Component\HttpFoundation\Response'); } |