factory = new InstallApplicationFactory(); } /** * @test */ public function serviceIsCreated() { $instance = $this->factory->__invoke(new ServiceManager(['services' => [ Filesystem::class => $this->prophesize(Filesystem::class)->reveal(), ]]), ''); $this->assertInstanceOf(Application::class, $instance); } }