Dashboard sipadu mbip
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ControllerArgumentsEventTest.php 576B

1234567891011121314151617
  1. <?php
  2. namespace Symfony\Component\HttpKernel\Tests\Event;
  3. use PHPUnit\Framework\TestCase;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent;
  6. use Symfony\Component\HttpKernel\Tests\TestHttpKernel;
  7. class ControllerArgumentsEventTest extends TestCase
  8. {
  9. public function testControllerArgumentsEvent()
  10. {
  11. $filterController = new ControllerArgumentsEvent(new TestHttpKernel(), function () {}, ['test'], new Request(), 1);
  12. $this->assertEquals($filterController->getArguments(), ['test']);
  13. }
  14. }