='))
{
error_reporting(E_ALL ^ E_DEPRECATED ^ E_USER_DEPRECATED);
}
else
{
error_reporting(E_ALL);
}
if (version_compare(PHP_VERSION, '5.1', '>='))
{
$tz = timezone_identifiers_list();
date_default_timezone_set($tz[array_rand($tz)]);
}
header('Content-type: text/html; charset=UTF-8');
?>
SimplePie: Unit Tests
Skip to the results |
Re-run without remote tests';
else echo 'Re-run with remote tests';
?>
load_folder($test);
$master->add($test_group);
}
$test_group = new SimplePie_Unit_Test2_Group('Who knows a
from a hole in the ground?');
$test_group->load_folder('who_knows_a_title_from_a_hole_in_the_ground');
$master->add($test_group);
$test_group = new SimplePie_Unit_Test2_Group('iTunesRSS');
$test_group->load_folder('itunes_rss');
$master->add($test_group);
if (isset($_GET['remote']))
{
$test_group = new SimplePie_Unit_Test2_Group('Atom autodiscovery test suite');
$test_group->add(new diveintomark_Atom_Autodiscovery);
$master->add($test_group);
}
$master->run();
$passed_percentage = floor($master->passes() / $master->total() * 100);
$failed_percentage = ceil($master->fails() / $master->total() * 100);
?>
>% passed!
We ran ' . $master->total() . ' tests in ' . round($master->time(), 3) . ' seconds (' . round($master->time() / $master->total(), 3) . ' seconds per test) of which ' . $master->passes() . ' (' . $passed_percentage . '%) passed, and ' . $master->fails() . ' (' . $failed_percentage . '%) failed.'; ?>
Powered by . SimplePie is © 2004–, Ryan Parman and Geoffrey Sneddon, and licensed under the BSD License.