From: Eloy Lafuente Date: Mon, 30 Nov 2009 21:36:28 +0000 (+0000) Subject: MDL-21007 FakeDBUnitTestCase unit tests now reported as exceptions X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=776b85474d367593d688ecad9fdd6dd284a0ea3a;p=moodle.git MDL-21007 FakeDBUnitTestCase unit tests now reported as exceptions --- diff --git a/lib/simpletestlib/test_case.php b/lib/simpletestlib/test_case.php index 61cac9f5ab..350168c3c8 100644 --- a/lib/simpletestlib/test_case.php +++ b/lib/simpletestlib/test_case.php @@ -598,7 +598,8 @@ class TestSuite { // moodle hack start - need to do this before the constructor call, because of FakeDBUnitTestCase. global $CFG; if (is_subclass_of($class, 'FakeDBUnitTestCase')) { - // Do not execute this test because the test tables system no longer works. + // Do not execute this test because the test tables system no longer works, reporting it as exception + $reporter->paintError("Unit test \"{$class}\" of type FakeDBUnitTestCase no longer supported. Must be migrated to UnitTestCaseUsingDatabase."); continue; } if (is_subclass_of($class, 'UnitTestCaseUsingDatabase') && empty($CFG->unittestprefix)) {