prophesize("\\pjdietz\\WellRESTed\\Interfaces\\RequestInterface"); $request->getPath()->willReturn("/"); $handler = $this->prophesize("\\pjdietz\\WellRESTed\\Interfaces\\HandlerInterface"); $handler->getResponse(Argument::cetera())->willReturn(null); $route = new StaticRoute("/", $handler->reveal()); $route->getResponse($request->reveal()); $handler->getResponse(Argument::cetera())->shouldHaveBeenCalled(); } }