7242579301d9c8f07fd36dba5ac18bd3b064084e
[yaffs-website] / vendor / symfony / http-kernel / Tests / Event / GetResponseForExceptionEventTest.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\HttpKernel\Tests\Event;
13
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\HttpFoundation\Request;
16 use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
17 use Symfony\Component\HttpKernel\Tests\TestHttpKernel;
18
19 class GetResponseForExceptionEventTest extends TestCase
20 {
21     public function testAllowSuccessfulResponseIsFalseByDefault()
22     {
23         $event = new GetResponseForExceptionEvent(new TestHttpKernel(), new Request(), 1, new \Exception());
24
25         $this->assertFalse($event->isAllowingCustomResponseCode());
26     }
27 }