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

Unit tests do not work with PHP 5.3

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.9.5
    • None
    • 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)

    Description

      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);

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              goony Gerard Ramos
              Nobody Nobody
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: