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

PHPunit failures on Windows and PostgreSQL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.0
    • Unit tests
    • None
    • MOODLE_500_STABLE

      See the following GHA action run:

      Running unit tests on Windows, we get the following failures on the main (5.0) branch. This does not seem to happen on 405 or earlier.

      Happens on PHP8.2 and 8.4

      1) core\dml_test::test_add_sql_debugging
      Failed asserting that 'SELECT * FROM {users}\n
      -- line 62 of \lib\dml\tests\fixtures\test_dml_sql_debugging_fixture.php: call to ReflectionMethod->invoke()' matches PCRE pattern "@SELECT \* FROM {users}
      -- line \d+ of \lib\dml\tests\fixtures\test_dml_sql_debugging_fixture.php: call to ReflectionMethod->invoke\(\)@".
      

      Happens on PHP 8.4

      2) core\filelib_test::test_download_file_content
      Failed asserting that '' is false.
      D:\a\moodle\moodle\lib\tests\filelib_test.php:138
       
      3) core\filelib_test::test_curl_basics
      Failed asserting that two strings are identical.
      --- Expected
      +++ Actual
      @@ @@
      -'404 Not Found'
      +'200 OK'
      D:\a\moodle\moodle\lib\tests\filelib_test.php:242
       
      4) tool_moodlenet\local\import_processor_test::test_process_invalid_resource
      Failed asserting that exception of type "coding_exception" is thrown.
       
      5) tool_moodlenet\local\remote_resource_test::test_network_features
      Failed asserting that exception of type "coding_exception" is thrown.
      

            Unassigned Unassigned
            jpataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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