public function testInvokingWithErrorInNonProductionModeSetsResponseBodyToError() { $error = 'error'; $response = call_user_func($this->final, $this->request, $this->response, $error); $this->assertEquals($error, (string) $response->getBody()); }