Example #1
0
 public function testSetContent()
 {
     $this->response->setContent('foo, bar');
     $this->assertEquals(false, $this->response->contentSent());
     ob_start();
     $this->response->sendContent();
     $content = ob_get_clean();
     $this->assertEquals('foo, bar', $content);
     $this->assertEquals(true, $this->response->contentSent());
     $this->assertEquals($this->response, $this->response->sendContent());
 }