* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Http\Tests\Logout; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Logout\SessionLogoutHandler; class SessionLogoutHandlerTest extends TestCase { public function testLogout() { $handler = new SessionLogoutHandler(); $request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->getMock(); $response = new Response(); $session = $this->getMockBuilder('Symfony\Component\HttpFoundation\Session\Session')->disableOriginalConstructor()->getMock(); $request ->expects($this->once()) ->method('getSession') ->will($this->returnValue($session)) ; $session ->expects($this->once()) ->method('invalidate') ; $handler->logout($request, $response, $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')->getMock()); } } __halt_compiler();----SIGNATURE:----bPYqn7o7EQX0pCvwimrnsAyp99k9DHGk1AhCNLA9YEwHRWBHFgMgI1VUW/VygZhpQ/9RjXx0qzwhHOIE2g6H+UIG56Rip6w5KU4dNTmoW5tR7l4KcxyC+Zxg06v2JfX5gJkvmUrCXoYSbQy6NHCToRTJ22FL1EPsCubUKChyY3xsudK2S0wdoujM4e7DvaYSzJ6pcEtYZn2wzsyDMrQSWelQ0hhncY3hIWNgTJzQwF45FKHLoe0mJlRLkf+taatJl0ZYtVgBNDgikcpCZwQ+GY1AWuWyT+wVkSVfPOag4GeANfA23usYzFTcb5/Y6f03ZXAjCNBi0KMs47CzIiDbVSGSEYEXB0LmFKScobSg8hciKPhx6cZgQDNFuuMGETLX84QtFIx/3N1I/BlOZuIcP0bNdLvk1E5x8agEyekw+fiTJNo1GRuVMZUzuV5PFms4rEFK1oY/hTyghNTP/7D28Ti3IxiEmkBeb+8cR4RmFRYXN4Dp7iEHOemuExUzlmolpBHHQYylPbiSMf1PJXrpsVVfrHkE7VUoAis5Hy7j/0NIsVlQHYvU3PRA9igN62bXBbS2hyRNYZHVoSU5JvCogXNhUG5/NodHq0CQ5vlMxL6aB46uXcTe2wwCrDu8Vs1Ifwif5bBlSfrUggZMMZX3duoQMGR9f6zXfrqThp9osj8=----ATTACHMENT:----OTA0NDI4OTY5NjU3NTgyIDk1ODI1NTI4MzE2OTU0MDcgNTA3NjgwMTQwOTMyOTE4OA==