MDL-67673 phpunit: Remove deprecated assertInternalType()
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 2 Aug 2020 11:08:42 +0000 (13:08 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 21 Oct 2020 10:46:05 +0000 (12:46 +0200)
commita6674bf8a4afddd1690aeace2f8120f41614be39
treeec23c0791bf0e821a84788486eabd8aa3354b2f7
parentdc87fd4b3f73b3d2e8cec6f1d456822e0aa1d696
MDL-67673 phpunit: Remove deprecated assertInternalType()

While this is not strictly required, because removal will
happen in PHPUnit 9.0, we are already getting rid of all
uses in core.

From release notes:https://phpunit.de/announcements/phpunit-8.html

assertInternalType() is deprecated and will be removed in
PHPUnit 9. Refactor your test to use assertIsArray(), assertIsBool(),
assertIsFloat(), assertIsInt(), assertIsNumeric(), assertIsObject(),
assertIsResource(), assertIsString(), assertIsScalar(),
assertIsCallable(), or assertIsIterable() instead.
33 files changed:
admin/tool/installaddon/tests/installer_test.php
admin/tool/log/tests/manager_test.php
admin/tool/usertours/tests/cache_test.php
analytics/tests/model_test.php
badges/tests/badgeslib_test.php
cache/tests/administration_helper_test.php
cache/tests/cache_test.php
cache/tests/config_writer_test.php
cache/tests/fixtures/stores.php
course/tests/courselib_test.php
course/tests/management_helper_test.php
files/tests/conversion_test.php
iplookup/tests/geoip_test.php
lib/dml/tests/dml_test.php
lib/form/tests/external_test.php
lib/form/tests/filetypes_util_test.php
lib/phpunit/tests/advanced_test.php
lib/tests/accesslib_test.php
lib/tests/jquery_test.php
lib/tests/moodlelib_test.php
lib/tests/plugin_manager_test.php
lib/tests/scheduled_task_test.php
lib/tests/update_checker_test.php
lib/tests/update_code_manager_test.php
lib/tests/update_validator_test.php
mod/forum/tests/subscriptions_test.php
mod/wiki/tests/externallib_test.php
privacy/tests/manager_test.php
privacy/tests/provider_test.php
privacy/tests/request_transform_test.php
question/type/calculated/tests/formula_validation_test.php
repository/tests/repositorylib_test.php
user/tests/userlib_test.php