Beispiel #1
0
 /**
  * @return \Nano\Controller\Redirect
  */
 public function permanent()
 {
     $this->response->setStatus(301);
     return $this;
 }
Beispiel #2
0
 public function testSettingStatus()
 {
     $this->response->setStatus(401);
     self::assertEquals(401, $this->getObjectProperty($this->response, 'status'));
 }