From d83bcdfcc7e9939013c6a56171188cc93078ad8f Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 23 Jun 2009 08:24:50 +0000 Subject: [PATCH] Oops, I left some debugging info in my prev commit. --- lib/dml/simpletest/testdml.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/dml/simpletest/testdml.php b/lib/dml/simpletest/testdml.php index d0d4cfa6563..1a59cb8bbd1 100755 --- a/lib/dml/simpletest/testdml.php +++ b/lib/dml/simpletest/testdml.php @@ -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() {