summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-kernel/Tests/Event/ExceptionEventTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-kernel/Tests/Event/ExceptionEventTest.php')
-rw-r--r--vendor/symfony/http-kernel/Tests/Event/ExceptionEventTest.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/symfony/http-kernel/Tests/Event/ExceptionEventTest.php b/vendor/symfony/http-kernel/Tests/Event/ExceptionEventTest.php
new file mode 100644
index 0000000000..6b061d3a33
--- /dev/null
+++ b/vendor/symfony/http-kernel/Tests/Event/ExceptionEventTest.php
@@ -0,0 +1,27 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\HttpKernel\Tests\Event;
+
+use PHPUnit\Framework\TestCase;
+use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\HttpKernel\Event\ExceptionEvent;
+use Symfony\Component\HttpKernel\Tests\TestHttpKernel;
+
+class ExceptionEventTest extends TestCase
+{
+ public function testAllowSuccessfulResponseIsFalseByDefault()
+ {
+ $event = new ExceptionEvent(new TestHttpKernel(), new Request(), 1, new \Exception());
+
+ $this->assertFalse($event->isAllowingCustomResponseCode());
+ }
+}