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()); }
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()); }