public function testFromJson() { $response = new Response(); $response->from(["a" => "b"]); $this->assertStringEndsWith('{"a":"b"}', (string) $response); $response->fromJson(["a" => "b", "c" => "d"]); $this->assertStringEndsWith('{"a":"b","c":"d"}', (string) $response); }