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); }
/** * @return $this|\Symfony\Component\HttpFoundation\Response */ public function send() { $this->content = $this->getContent(); return parent::send(); }