construct_info_retrieval_error( $request, $response ); } else { $xml = new SimpleXMLElement( $response['body'] ); $result = $xml->xpath( "/rss/channel/item/media:thumbnail/@url" ); $result = (string) $result[0]['url']; $result = $this->drop_url_parameters( $result ); } return $result; } // Test cases public static function get_test_cases() { return array( array( 'markup' => '', 'expected' => 'http://s4.mcstatic.com/thumb/8456223/22479418/4/catalog_item5/0/1/men_in_black_3_trailer_2.jpg', 'expected_hash' => '977187bfb00df55b39724d7de284f617', 'name' => __( 'Flash Embed', 'video-thumbnails' ) ), ); } } ?>