8000 minor #25054 [HttpKernel] add a test for FilterControllerEvents (Simp… · symfony/symfony@8950aad · GitHub
[go: up one dir, main page]

Skip to content

Commit 8950aad

Browse files
minor #25054 [HttpKernel] add a test for FilterControllerEvents (Simperfit)
This PR was merged into the 3.3 branch. Discussion ---------- [HttpKernel] add a test for FilterControllerEvents | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | no | Fixed tickets | no <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | no Commits ------- b746e8a [HttpKernel] add a test for FilterControllerEvents
2 parents 8c5eead + b746e8a commit 8950aad

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Symfony\Component\HttpKernel\Tests\Event;
4+
5+
use Symfony\Component\HttpFoundation\Request;
6+
use Symfony\Component\HttpKernel\Event\FilterControllerArgumentsEvent;
7+
use PHPUnit\Framework\TestCase;
8+
use Symfony\Component\HttpKernel\Tests\TestHttpKernel;
9+
10+
class FilterControllerArgumentsEventTest extends TestCase
11+
{
12+
public function testFilterControllerArgumentsEvent()
13+
{
14+
$filterController = new FilterControllerArgumentsEvent(new TestHttpKernel(), function () {}, array('test'), new Request(), 1);
15+
$this->assertEquals($filterController->getArguments(), array('test'));
16+
}
17+
}

0 commit comments

Comments
 (0)
0