public function testInvokingWithErrorAndNoStatusCodeSetsStatusTo500() { $error = 'error'; $response = call_user_func($this->final, $this->request, $this->response, $error); $this->assertEquals(500, $response->getStatusCode()); }