public function testFromJsonP() { $response = new Response(); $response->fromJsonp("phpunit", (object) ["a" => "b"]); $this->assertStringEndsWith('phpunit({"a":"b"})', (string) $response); }