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()); } }
/** * Returns true if the http status code is equal to 404; false otherwise * * @return bool */ public function isNotFoundHttpStatus() { return $this->serverRawResponse->isNotFound(); }