* * 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:----hYFUL4ih2E7pI6gSCRQL0fR+o0Yv9aCAr2QU1dnOjAaqr4jFcHDUyAvuXXMch3CvWwp3IukmWFhui7gApoPm2PD4puDciA2nqO/LtJ7U1T2gQB6ccyNOAep0hjruy8lEV6LxGHJ/Z9BR0iO0IOjR7Qr1SytUwDC7lP4sazPIk2Hl/FbSlZCQzCCvrb7prJpxCnWAhpDyi7JhEekQ2e4kVqVPO61Y+xHmyGYzEpy3HQstQ0WSXEQYeZ36gsHCc/kyvgXy4QiEx6zidaaJSmej3pa3UqCdNjQBLFOulEWT/N0hBzcPJwghyaHjq+NDkizmlTgef3V6ITTnG8ZPadDMQv7ZqpGM6HMS2aKnMNgmqF4YHzEw3bTnAaUst0RwHPZIeWAyUFQjYFFJfI0+ovpQJHaT8hjCMppN2I4Eh4m8D8ppD8G8PliVtfqpEcGuVc1tl/eQ40oQcQiSowrxWiTM8H4Ex75h2XpjpB5infhlvfc9Gvo9hC4ktt1P83mju/haUFYw8oym5LDVjdmcK8uvH2f0VGmHnVUfczotpmPFaFfYTu4ZKvQt9tZJG33V4bqUdOwkMKNamcmNVevg8tLxOgveW3rSpISnMD9bPVJonA+Vhglphzxh2vFMXjfw+DZzuXgONGhvRFp1XR23c4IUcMyPufAb+trQ6N2Pr53IMQw=----ATTACHMENT:----NTUzODYwODIyNzUyNzY0MCAyMTQ5MDQwNjI5OTM4OTQxIDU1NTIyOTA3OTA1OTgzMTY=