summaryrefslogtreecommitdiffstats
path: root/Http/Tests/Logout/SessionLogoutHandlerTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2016-12-19 16:38:44 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2016-12-19 16:38:44 +0100
commitb61218eac019add58b6eaf5bd0bdf331fb375ffb (patch)
tree81d5e0ad1bc52ea5cb4bcc570556e886c29fdc8c /Http/Tests/Logout/SessionLogoutHandlerTest.php
parent8a7bf02f6038110dbf43a6c7dbf247acccac9817 (diff)
parent0582ad240b9aa4b86945b3fdee0f84b20eb0856f (diff)
downloadsymfony-security-b61218eac019add58b6eaf5bd0bdf331fb375ffb.zip
symfony-security-b61218eac019add58b6eaf5bd0bdf331fb375ffb.tar.gz
symfony-security-b61218eac019add58b6eaf5bd0bdf331fb375ffb.tar.bz2
Merge branch '2.7' into 2.8
* 2.7: fixed obsolete getMock() usage [WebProfilerBundle] Display multiple HTTP headers in WDT
Diffstat (limited to 'Http/Tests/Logout/SessionLogoutHandlerTest.php')
-rw-r--r--Http/Tests/Logout/SessionLogoutHandlerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Http/Tests/Logout/SessionLogoutHandlerTest.php b/Http/Tests/Logout/SessionLogoutHandlerTest.php
index c342995..6a435d7 100644
--- a/Http/Tests/Logout/SessionLogoutHandlerTest.php
+++ b/Http/Tests/Logout/SessionLogoutHandlerTest.php
@@ -20,9 +20,9 @@ class SessionLogoutHandlerTest extends \PHPUnit_Framework_TestCase
{
$handler = new SessionLogoutHandler();
- $request = $this->getMock('Symfony\Component\HttpFoundation\Request');
+ $request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->getMock();
$response = new Response();
- $session = $this->getMock('Symfony\Component\HttpFoundation\Session\Session', array(), array(), '', false);
+ $session = $this->getMockBuilder('Symfony\Component\HttpFoundation\Session\Session')->disableOriginalConstructor()->getMock();
$request
->expects($this->once())
@@ -35,6 +35,6 @@ class SessionLogoutHandlerTest extends \PHPUnit_Framework_TestCase
->method('invalidate')
;
- $handler->logout($request, $response, $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface'));
+ $handler->logout($request, $response, $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')->getMock());
}
}