Esempio n. 1
0
 /**
  * Run the application
  */
 public function run()
 {
     $request = Request::createFromGlobals();
     $this->instance('request', $request);
     $this->bootProviders();
     $response = $this['router']->dispatch($this['request']);
     if (false == $response instanceof Response) {
         $response = new Response($response);
     }
     $response->send();
 }
 public function testResponseContentWithRenderableObjects()
 {
     $response = new Response(new UT_Response_Render());
     $this->assertEquals('Hello!', $response->prepareContent());
 }