Exemplo n.º 1
0
 public function testChainability()
 {
     $params = array('hi', 'yo');
     $this->response->setData($params)->setStatus(Http::STATUS_NOT_FOUND);
     $this->assertEquals(Http::STATUS_NOT_FOUND, $this->response->getStatus());
     $this->assertEquals(array('hi', 'yo'), $this->response->getData());
 }