Beispiel #1
0
 /**
  * Empty response for HTTP call
  * 
  * @return string
  */
 public function executeHttp()
 {
     $response = new ResponseHttp();
     $response->setCode(204);
     $response->setHeaders(array('Content-Type' => 'text/html; charset=utf-8'));
     $response->setContent('');
     $this->notify($this, $response);
     return $response;
 }
Beispiel #2
0
 public function testContent()
 {
     $response = new ResponseHttp(200, 'This is the content');
     $this->assertEquals('This is the content', $response->getContent());
 }