4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Tests\Event;
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;
19 class GetResponseForExceptionEventTest extends TestCase
21 public function testAllowSuccessfulResponseIsFalseByDefault()
23 $event = new GetResponseForExceptionEvent(new TestHttpKernel(), new Request(), 1, new \Exception());
25 $this->assertFalse($event->isAllowingCustomResponseCode());