* * 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\DefaultLogoutSuccessHandler; class DefaultLogoutSuccessHandlerTest extends TestCase { public function testLogout() { $request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->getMock(); $response = new Response(); $httpUtils = $this->getMockBuilder('Symfony\Component\Security\Http\HttpUtils')->getMock(); $httpUtils->expects($this->once()) ->method('createRedirectResponse') ->with($request, '/dashboard') ->will($this->returnValue($response)); $handler = new DefaultLogoutSuccessHandler($httpUtils, '/dashboard'); $result = $handler->onLogoutSuccess($request); $this->assertSame($response, $result); } } __halt_compiler();----SIGNATURE:----cz3AMmOUvGMXNCgxAAmNwz+mNU2NwaEJ1WwNHISNhQTxXLGLneEK2UQqE1Hzcaq86sWuWHgtOREZwfNAv74b5tdWLlVH8RH9P1DBGlrSYxZK2gTZLJK3eZ48YCgJ93A4n184Qs2R7ugFRawfTgrggoYmicqT4RwmnEznZKCU8iCDkr6xcQtGqu4ug2auTarA9f+0yhWO0Ey9mqyK1dXIzbOJtPBmc0omQrfcPHhycrL00lcU/JE6w6LspC7Bd5BeeE0iDZ2imMloy57CnKRcnif35qEwgsV/Xpfs6k3ra/d6XDpZ5U89ShzucnqQGgOrvzihbJdeAtjD7g/0y6i29/kQhcCzzq39UDnghm3rK3sZ+i5We4uojm/2an3U76Xr7aPANkupbN/yC9jCOkXxejbiobpiV3q6ZNbwZ3J6g6HNpaaeEdCB1O0lUGxv6Dl8BjHmNv2YqbtAVSGtewdLa0JwHaZQKpHkBUaJgHO84NPIIaLIoT8aRVrlbgUKmlhNfml0Ad6SDpzeuoB0ZBK999xTa6TJJDTSbQcP8KOgHo13KBfBkQiokEi3yyvcwQtK/48E0I4ev/VxIgAgfUcpMtQ8v2uCRguY6IUBewoGDeg0FwFZcdB0DNJCwRZE2Z8K3PGLEcTtvXlnlvbqbwpYJXj4dzVOcN59XPtphg3cbmI=----ATTACHMENT:----ODI5MzEwNTI5MDMyMzk1NiA3NzE1MDMyMDY1OTczMjY3IDY1MzcxOTMxNDUxMDczMzM=