Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit 10 Deprecations (Moodle 4.4+) #883

Open
bwalkerl opened this issue Jun 7, 2024 · 0 comments
Open

PHPUnit 10 Deprecations (Moodle 4.4+) #883

bwalkerl opened this issue Jun 7, 2024 · 0 comments

Comments

@bwalkerl
Copy link
Contributor

bwalkerl commented Jun 7, 2024

In Moodle 4.4 I'm getting the following warnings in unit tests. Moodle 4.5 is expected to migrate to PHPUnit10 as part of MDL-80969

--

There were 2 warnings:

1) tool_dataflows\tool_dataflows_connector_curl_test::test_execute
assertObjectHasAttribute() is deprecated and will be removed in PHPUnit 10. Refactor your test to use assertObjectHasProperty() instead.

/var/www/moodle-44/lib/phpunit/classes/advanced_testcase.php:72

2) tool_dataflows\tool_dataflows_variables_test::test_variable_parsing_involving_indirect_self_recursion
Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10.

/var/www/moodle-44/lib/phpunit/classes/advanced_testcase.php:72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant