From 80cfaf2bfe9cb33b0918b298301976bb64ed0127 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 11 Jun 2009 19:20:03 +0000 Subject: [PATCH] MDL-19471 fixed PHP 5.3 compatibility --- lib/simpletestlib/test_case.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/simpletestlib/test_case.php b/lib/simpletestlib/test_case.php index 8f4e1bd942..fce7d814c6 100644 --- a/lib/simpletestlib/test_case.php +++ b/lib/simpletestlib/test_case.php @@ -659,7 +659,12 @@ class TestSuite { * @subpackage UnitTester * @deprecated */ -class GroupTest extends TestSuite { } +class GroupTest extends TestSuite { + // moodle fix: adding old style constructor to make it compatible with PHP 5.3 + function GroupTest($label = false) { + parent::TestSuite($label); + } +} /** * This is a failing group test for when a test suite hasn't -- 2.39.5