factory = new ImageBuilderFactory(); } /** @test */ public function serviceIsCreated() { $instance = $this->factory->__invoke(new ServiceManager(), ''); $this->assertInstanceOf(ImageBuilder::class, $instance); } }