cameraPictureManager = $this->prophesize(CameraPictureManagerService::class); } public function testReturnsJsonResponse() { $homePage = new GetLatestCameraPicturesAction( $this->cameraPictureManager->reveal() ); $response = $homePage->process( $this->prophesize(ServerRequestInterface::class)->reveal(), $this->prophesize(DelegateInterface::class)->reveal() ); $this->assertInstanceOf(JsonResponse::class, $response); } }