public function testInvalidStringSubscriber()
{
$container = $this->buildContainer('NonExistentClass');
$container->has('NonExistentClass')->willReturn(false);
$factory = new EventManagerFactory();
$this->setExpectedException(DomainException::class, 'Invalid event subscriber "NonExistentClass" given');
$factory($container->reveal());
}