factory = new ErrorHandlerManagerFactory(); } /** * @test */ public function serviceIsCreated() { $instance = $this->factory->__invoke(new ServiceManager(['services' => [ 'config' => [ 'error_handler' => [ 'plugins' => [], ], ], ]]), ''); $this->assertInstanceOf(ErrorHandlerManager::class, $instance); } }