Пример #1
0
 function testResponse()
 {
     $r = new RestResponse();
     $this->assertFalse($r->headerSent());
     $r->setResponse("foo");
     $r->appendResponse("bar");
     $this->assertEquals($r->getResponse(), "foobar");
 }