You are here

public function RegisterListenersPassTest::testEventSubscriberUnresolvableClassName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/event-dispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php \Symfony\Component\EventDispatcher\Tests\DependencyInjection\RegisterListenersPassTest::testEventSubscriberUnresolvableClassName()

@expectedException \InvalidArgumentException @expectedExceptionMessage You have requested a non-existent parameter "subscriber.class"

File

vendor/symfony/event-dispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php, line 184

Class

RegisterListenersPassTest

Namespace

Symfony\Component\EventDispatcher\Tests\DependencyInjection

Code

public function testEventSubscriberUnresolvableClassName() {
  $container = new ContainerBuilder();
  $container
    ->register('foo', '%subscriber.class%')
    ->addTag('kernel.event_subscriber', array());
  $container
    ->register('event_dispatcher', 'stdClass');
  $registerListenersPass = new RegisterListenersPass();
  $registerListenersPass
    ->process($container);
}