]> git.mjollnir.org Git - moodle.git/commitdiff
unittests: NOBUG improve testrss.php failure message to make it easier for people...
authortjhunt <tjhunt>
Wed, 30 Sep 2009 14:57:31 +0000 (14:57 +0000)
committertjhunt <tjhunt>
Wed, 30 Sep 2009 14:57:31 +0000 (14:57 +0000)
lib/simpletest/testrss.php

index e6609ca8a944b665cea58b332232d31d9cca741e..e32b33e47a7453a0468f36df113ec4ff37aae8e3 100644 (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');