-
Bug
-
Resolution: Fixed
-
Minor
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
MDL-77989-master -
Our pipelines (which we've just fixed to work in Ubuntu Jammy are triggering unit test failures on master with the webservice_reset_testsuite using PHP 8.1.18
vendor/bin/phpunit --testsuite webservice_rest_testsuite
There were 13 failures:
1) webservice_rest\server_test::test_xmlize with data set #1 (core_external\external_value Object (...), false, '<VALUE>0</VALUE>\n')
Failed asserting that null matches expected '<VALUE>0</VALUE>\n
'.
/var/www/html/webservice/rest/tests/server_test.php:211
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
2) webservice_rest\server_test::test_xmlize with data set #2 (core_external\external_value Object (...), true, '<VALUE>1</VALUE>\n')
Failed asserting that null matches expected '<VALUE>1</VALUE>\n
'.
/var/www/html/webservice/rest/tests/server_test.php:211
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
3) webservice_rest\server_test::test_xmlize with data set #3 (core_external\external_value Object (...), null, '<VALUE null="null"/>\n')
Failed asserting that null matches expected '<VALUE null="null"/>\n
'.
/var/www/html/webservice/rest/tests/server_test.php:211
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
4) webservice_rest\server_test::test_xmlize with data set #4 (core_external\external_value Object (...), 'a', '<VALUE>a</VALUE>\n')
Failed asserting that null matches expected '<VALUE>a</VALUE>\n
'.
/var/www/html/webservice/rest/tests/server_test.php:211
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
5) webservice_rest\server_test::test_xmlize with data set #5 (core_external\external_value Object (...), 123, '<VALUE>123</VALUE>\n')
Failed asserting that null matches expected '<VALUE>123</VALUE>\n
'.
/var/www/html/webservice/rest/tests/server_test.php:211
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
6) webservice_rest\server_test::test_xmlize with data set #6 (core_external\external_multiple_structure Object (...), array(1, 2, 3), '<MULTIPLE>\n<VALUE>1</VALUE>\...PLE>\n')