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