public function testJSONP() { $res = ResponseParser::parseJSONP(new Response(200, [], Stream::factory('jQuery21305313212884880004_1427952242748({"status":"success"})'))); $this->assertArrayHasKey('status', $res); }