示例#1
0
 public function setUp()
 {
     parent::setUp();
     // Bind objects to our service
     $this->klein_app->service()->bind(new Request(), new Response());
     // Setup our error handler
     $this->klein_app->onError(array($this, 'errorHandler'), false);
 }
示例#2
0
 protected function setUp()
 {
     parent::setUp();
     $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
 }
示例#3
0
 public function setUp()
 {
     parent::setUp();
     // Setup our error handler
     $this->klein_app->onError(array($this, 'errorHandler'), false);
 }