public function testInvalidTypeSubscriber() { $factory = new EventManagerFactory(); $this->setExpectedException(DomainException::class, 'Invalid event subscriber "integer" given'); $factory($this->buildContainer(1)->reveal()); }