public function RegisterListenersPassTest::testAbstractEventListener in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/event-dispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php \Symfony\Component\EventDispatcher\Tests\DependencyInjection\RegisterListenersPassTest::testAbstractEventListener()
@expectedException \InvalidArgumentException @expectedExceptionMessage The service "foo" must not be abstract as event listeners are lazy-loaded.
File
- vendor/
symfony/ event-dispatcher/ Tests/ DependencyInjection/ RegisterListenersPassTest.php, line 132
Class
Namespace
Symfony\Component\EventDispatcher\Tests\DependencyInjectionCode
public function testAbstractEventListener() {
$container = new ContainerBuilder();
$container
->register('foo', 'stdClass')
->setAbstract(true)
->addTag('kernel.event_listener', array());
$container
->register('event_dispatcher', 'stdClass');
$registerListenersPass = new RegisterListenersPass();
$registerListenersPass
->process($container);
}