moodle/files
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
..
classes MDL-70387 files: New WS core_files_get_unused_draft_itemid 2021-01-13 13:01:40 +01:00
converter MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
tests MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
coursefilesedit.php MDL-35628 performance: Remove dirname() where possible. 2016-06-10 08:06:49 +10:00
coursefilesedit_form.php MDL-41940 files Option to limit legacy course files 2013-10-04 13:56:57 -04:00
externallib.php MDL-60198 webservice: Add missing MOODLE_INTERNAL checks 2017-09-21 13:01:28 +02:00
index.php MDL-47033 general: Fix incorrect use of 'course' layout 2014-09-05 09:25:43 +12:00
renderer.php MDL-66911 files: Use proper function for fetching enabled licenses 2020-05-28 15:23:38 +08:00
upgrade.txt MDL-49894 webservices: Add missing API changes in upgrade.txt 2015-04-16 15:19:42 +02:00