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:45:59 +0000 (12:45 +0200)
commitf94195c3200ff1dff22b698f6a3782b8503eca59
treebc055cb590ec120a8cf89310750866c749065298
parent80be8d2204631e5907deff98fa0f825ccbc0983c
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