/**
* {@inheritdoc}
*/
protected function tearDown(): void
{ $this->dispatcher = NULL;
$this->listener = NULL;
} protected function createEventDispatcher() { $container =
new Container();
return new ContainerAwareEventDispatcher($container);
} public function testGetListenersWithCallables() { // When passing in callables exclusively as listeners into the event
// dispatcher constructor, the event dispatcher must not attempt to
// resolve any services.
$container =
$this->
getMockBuilder(ContainerInterface::
class)->
getMock();
$container->
expects($this->
never())->
method($this->
anything());
$firstListener =
new CallableClass();
$secondListener =
function D
) { };