Skip to content

Commit b746e8a

Browse files
author
Amrouche Hamza
committed
[HttpKernel] add a test for FilterControllerEvents
1 parent 3b6c22e commit b746e8a

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)