/** * @runInSeparateProcess */ public function testBodylessResponse() { $response = new Response(); $response->setResponseCode(ResponseCode::HTTP_NO_CONTENT); $response->setBody('test!'); $this->expectOutputString(''); $response->send(); }
/** * Moves the output buffer to the response, and send the built-up response to the client. */ private function sendResponse() { $this->finalizeOutputBuffer(); $this->response->send(); }