moodle/lib/filestorage/tests
Eloy Lafuente (stronk7) 81407f18ec MDL-71036 phpunit: Mock->setMethods() silently deprecated
The current ->setMethods() has been silently (won't emit any
warning) in PHPUnit 9. And will stop working (current plans)
in PHPUnit 10.

Basically the now deprecated method has been split into:

- onlyMethods(): To point to existing methods in the mocked artifact.
- addMethods(): To point to non existing (yet) methods in the mocked
  artifact.

In practice that means that all our current setMethods() calls can be
converted to onlyMethods() (existing) and done. The addMethods() is
mostly useful on development phases, not final testing.

Finally note that <null> isn't accepted anymore as parameter to
double all the methods. Instead empty array [] must be used.

Link: https://github.com/sebastianbergmann/phpunit/issues/3770
2021-03-11 23:04:31 +01:00
..
fixtures MDL-37802 repository: return error if unzipping files fails. 2020-09-25 09:33:44 +01:00
file_storage_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 19:22:24 +01:00
file_system_filedir_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
file_system_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
mbz_packer_test.php MDL-46375 core_files: Correct filename in mbz test 2017-02-14 08:42:28 +08:00
tgz_packer_test.php MDL-58718 filestorage: Normalise file paths for Windows 2017-04-26 09:36:10 +08:00
zip_packer_test.php MDL-71036 phpunit: Renamed various file-related assertions 2021-03-11 19:22:23 +01:00