]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19471 fixed PHP 5.3 compatibility
authorskodak <skodak>
Thu, 11 Jun 2009 19:20:03 +0000 (19:20 +0000)
committerskodak <skodak>
Thu, 11 Jun 2009 19:20:03 +0000 (19:20 +0000)
lib/simpletestlib/test_case.php

index 8f4e1bd942291a886da74b0aedfea176ecc7ae7a..fce7d814c6c51919772f2f3a5e20fd0df6413b53 100644 (file)
@@ -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