function test_set_body_with_empty_string() { $response = new HttpResponse(200); $headers = array(); $headers['content-encoding'] = 'gzip'; $response->headers = $headers; $response->body = ""; $this->assertTrue($response->is_success(), 'Should have handled empty body without causing error'); }