Esempio n. 1
0
 public function testSend()
 {
     $response = new Responder('foo:bar');
     $response->disableSendHeaders();
     ob_start();
     $response->send();
     $output = ob_get_contents();
     ob_end_clean();
     $this->assertEquals('foo:bar', $output);
 }
Esempio n. 2
0
 /**
  * @return $this|\Symfony\Component\HttpFoundation\Response
  */
 public function send()
 {
     $this->content = $this->getContent();
     return parent::send();
 }