Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-20561

Unit tests do not work with PHP 5.3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.9.5
    • Unit tests
    • None
    • Environment where bug is occuring: Windows running XAMPP 1.7.2 (Apache 2.2.12 + MySQL 5.1.37 + PHP 5.3.0)
      Environment where bug doesn't occur: Same as above but XAMPP 1.7.1 ( Apache HTTPD 2.2.11 + MySQL 5.1.33 + PHP 5.2.9)

      Fresh install of Moodle with PHP 5.3 results in the following error occuring when trying to run Unit Tests through Moodle:

      Fatal error: Call to undefined method AutoGroupTest::GroupTest() in D:\xampp\htdocs\moodle\admin\report\unittest\ex_simple_test.php on line 31

      Problem did not occur when I rolled back to PHP 5.2.9.

      The problem was resolved in PHP 5.3 when i commented out this line in /admin/report/unittest/ex_simple_test.php (line 31)

      $this->GroupTest($test_name);

            skodak Petr Skoda
            goony Gerard Ramos (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.