/**
* @comment This test is horrible because it runs multiple tests inside this one method. - blobaugh
* @author unknown
* @pre-2.3.3
*/
function test_parse_images_from_html()
{
$directory = __DIR__ . '/modules/photon/sample-content';
$files = glob($directory . '/' . '*.html');
foreach ($files as $file) {
$file_contents = file_get_contents($file);
list($sample_html, $expected) = explode("\n--RESULTS--\n", $file_contents, 2);
$this->assertEquals($expected, print_r(Jetpack_Photon::parse_images_from_html($sample_html), true));
}
}