unittests: NOBUG improve testrss.php failure message to make it easier for people to know to set their proxy.

This commit is contained in:
tjhunt 2009-09-30 14:57:31 +00:00
parent d4bc6be7e8
commit ec26b38806

View File

@ -36,7 +36,10 @@ class moodlesimplepie_test extends UnitTestCase {
$this->assertIsA($feed, 'moodle_simplepie');
$this->assertFalse($feed->error());
$this->assertFalse($feed->error(), "Failed to load the sample RSS file. Please check your proxy settings in Moodle. %s");
if ($feed->error()) {
return;
}
$this->assertEqual($feed->get_title(), 'Moodle News');