summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-kernel/Tests/Event
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-kernel/Tests/Event')
-rw-r--r--vendor/symfony/http-kernel/Tests/Event/ControllerArgumentsEventTest.php17
-rw-r--r--vendor/symfony/http-kernel/Tests/Event/ExceptionEventTest.php (renamed from vendor/symfony/http-kernel/Tests/Event/GetResponseForExceptionEventTest.php)6
-rw-r--r--vendor/symfony/http-kernel/Tests/Event/FilterControllerArgumentsEventTest.php17
3 files changed, 20 insertions, 20 deletions
diff --git a/vendor/symfony/http-kernel/Tests/Event/ControllerArgumentsEventTest.php b/vendor/symfony/http-kernel/Tests/Event/ControllerArgumentsEventTest.php
new file mode 100644
index 0000000000..7758a66667
--- /dev/null
+++ b/vendor/symfony/http-kernel/Tests/Event/ControllerArgumentsEventTest.php
@@ -0,0 +1,17 @@
+<?php
+
+namespace Symfony\Component\HttpKernel\Tests\Event;
+
+use PHPUnit\Framework\TestCase;
+use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent;
+use Symfony\Component\HttpKernel\Tests\TestHttpKernel;
+
+class ControllerArgumentsEventTest extends TestCase
+{
+ public function testControllerArgumentsEvent()
+ {
+ $filterController = new ControllerArgumentsEvent(new TestHttpKernel(), function () {}, ['test'], new Request(), 1);
+ $this->assertEquals($filterController->getArguments(), ['test']);
+ }
+}
diff --git a/vendor/symfony/http-kernel/Tests/Event/GetResponseForExceptionEventTest.php b/vendor/symfony/http-kernel/Tests/Event/ExceptionEventTest.php
index 7242579301..6b061d3a33 100644
--- a/vendor/symfony/http-kernel/Tests/Event/GetResponseForExceptionEventTest.php
+++ b/vendor/symfony/http-kernel/Tests/Event/ExceptionEventTest.php
@@ -13,14 +13,14 @@ namespace Symfony\Component\HttpKernel\Tests\Event;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
+use Symfony\Component\HttpKernel\Event\ExceptionEvent;
use Symfony\Component\HttpKernel\Tests\TestHttpKernel;
-class GetResponseForExceptionEventTest extends TestCase
+class ExceptionEventTest extends TestCase
{
public function testAllowSuccessfulResponseIsFalseByDefault()
{
- $event = new GetResponseForExceptionEvent(new TestHttpKernel(), new Request(), 1, new \Exception());
+ $event = new ExceptionEvent(new TestHttpKernel(), new Request(), 1, new \Exception());
$this->assertFalse($event->isAllowingCustomResponseCode());
}
diff --git a/vendor/symfony/http-kernel/Tests/Event/FilterControllerArgumentsEventTest.php b/vendor/symfony/http-kernel/Tests/Event/FilterControllerArgumentsEventTest.php
deleted file mode 100644
index abc51ac51e..0000000000
--- a/vendor/symfony/http-kernel/Tests/Event/FilterControllerArgumentsEventTest.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-namespace Symfony\Component\HttpKernel\Tests\Event;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpKernel\Event\FilterControllerArgumentsEvent;
-use Symfony\Component\HttpKernel\Tests\TestHttpKernel;
-
-class FilterControllerArgumentsEventTest extends TestCase
-{
- public function testFilterControllerArgumentsEvent()
- {
- $filterController = new FilterControllerArgumentsEvent(new TestHttpKernel(), function () {}, ['test'], new Request(), 1);
- $this->assertEquals($filterController->getArguments(), ['test']);
- }
-}