container = $this->prophesize(ContainerInterface::class); $this->container->get("config")->willReturn(['application' => []]); } /** * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ public function testFactory() { $factory = new CameraPictureManagerServiceFactory(); $this->assertInstanceOf(CameraPictureManagerServiceFactory::class, $factory); $cameraPictureManager = $factory($this->container->reveal()); $this->assertInstanceOf(CameraPictureManagerService::class, $cameraPictureManager); } }