use Symfony\Component\HttpKernel\Tests\Fixtures\Attribute\Baz;
use Symfony\Component\HttpKernel\Tests\Fixtures\Controller\AttributeController;
use Symfony\Component\HttpKernel\Tests\TestHttpKernel;
class ControllerEventTest extends TestCase
{ /**
* @dataProvider provideGetAttributes
*/
public function testGetAttributes(callable
$controller) { $event =
new ControllerEvent(new TestHttpKernel(),
$controller,
new Request(), HttpKernelInterface::MAIN_REQUEST
);
$expected =
[ Bar::
class => [ new Bar('class'
),
new Bar('method'
),
],
Baz::
class => [ new Baz(),
],
];