/** * Tests, that the sendError method sends a HTTP 500 error */ public function testError() { $this->createCleanResponse(); $this->response->sendError(); $this->assertEquals(500, $this->output->responseCode, 'HttpResponse::sendError should send a HTTP 500 status code.'); }