Ejemplo n.º 1
0
 public function testNon404ErrorsInjectNoStatusCode()
 {
     $response = new Response();
     $event = new MvcEvent();
     $errors = array(Application::ERROR_EXCEPTION, 'custom-error', null);
     foreach ($errors as $error) {
         $response->setStatusCode(200);
         $event->setError($error);
         $this->strategy->detectNotFoundError($event);
         $this->assertFalse($response->isNotFound());
     }
 }
Ejemplo n.º 2
0
 /**
  * Returns true if the http status code is equal to 404; false otherwise
  *
  * @return bool
  */
 public function isNotFoundHttpStatus()
 {
     return $this->serverRawResponse->isNotFound();
 }