예제 #1
0
 public function testApcDependencyFailsGracefully()
 {
     // Custom apc function
     implement_custom_apc_cache_functions();
     $this->klein_app->respond('/test', function () {
     });
     $this->klein_app->dispatch(MockRequestFactory::create('/test'));
     $this->assertSame(200, $this->klein_app->response()->code());
 }
예제 #2
0
 public function testSendCallsFastCGIFinishRequest()
 {
     // Custom apc function
     implement_custom_apc_cache_functions();
     $this->router->respond('/test', function () {
     });
     $this->router->dispatch(MockRequestFactory::create('/test'));
     $this->assertSame(200, $this->router->response()->code());
 }