From 776b85474d367593d688ecad9fdd6dd284a0ea3a Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Mon, 30 Nov 2009 21:36:28 +0000 Subject: [PATCH] MDL-21007 FakeDBUnitTestCase unit tests now reported as exceptions --- lib/simpletestlib/test_case.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) { -- 2.39.5