예제 #1
0
 /**
  * @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);
 }
예제 #2
0
파일: Browser.php 프로젝트: rawebone/micro
 protected function makeRequest($uri, $method, array $headers, $content)
 {
     return Request::create($uri, strtoupper($method), array(), array(), array(), $headers, $content);
 }