/** * @expectedException \Micro\Exceptions\BadHandlerReturnException */ public function testNotFoundCalledOnBadRequest() { $notFound = $this->prophet->prophesize("Micro\\NotFoundControllerInterface"); $app = new Application(); $app->debugMode = true; $app->attach($notFound->reveal()); $req = Request::create("/"); $app->run($req); }
protected function makeRequest($uri, $method, array $headers, $content) { return Request::create($uri, strtoupper($method), array(), array(), array(), $headers, $content); }