]> git.mjollnir.org Git - moodle.git/commitdiff
Oops, I left some debugging info in my prev commit.
authorstronk7 <stronk7>
Tue, 23 Jun 2009 08:24:50 +0000 (08:24 +0000)
committerstronk7 <stronk7>
Tue, 23 Jun 2009 08:24:50 +0000 (08:24 +0000)
lib/dml/simpletest/testdml.php

index d0d4cfa6563995668d7a1736f4f0b13ffb40daa1..1a59cb8bbd160052d747614bb29fffca437b5c12 100755 (executable)
@@ -769,14 +769,13 @@ class dml_test extends UnitTestCase {
         $CFG->debugdisplay = true;
         ob_start(); // hide debug warning
         $records = $DB->get_records_sql("SELECT course AS id, course AS course FROM {".$tablename."}", null);
-        $CFG->debug = $olddebug;         // Restore original debug settings
         ob_end_clean();
-        $CFG->debugdisplay = $olddisplay;
         $debuginfo = ob_get_contents();
+        $CFG->debug = $olddebug;         // Restore original debug settings
+        $CFG->debugdisplay = $olddisplay;
 
         $this->assertEqual(3, count($records));
         $this->assertFalse($debuginfo === '');
-        print_object($debuginfo);
     }
 
     public function test_get_records_menu() {