moodle/contentbank
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
..
amd MDL-69762 core_contentbank: let users hide their content 2021-02-15 13:26:32 -05:00
classes Merge branch 'MDL-70941-master' of git://github.com/dravek/moodle 2021-03-01 09:54:00 +01:00
contenttype/h5p MDL-70726 behat: Fixing existing fail tests 2021-03-05 14:19:55 +07:00
templates MDL-69762 core_contentbank: let users hide their content 2021-02-15 13:26:32 -05:00
tests MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
edit.php MDL-69672 core_contentbank: Check used context level 2020-09-29 17:46:10 +02:00
files_form.php MDL-69270 contentbank: replace content with file 2020-08-26 12:36:27 +02:00
index.php MDL-69672 core_contentbank: Check used context level 2020-09-29 17:46:10 +02:00
lib.php MDL-69762 core_contentbank: let users hide their content 2021-02-15 13:26:32 -05:00
upgrade.txt MDL-69762 core_contentbank: let users hide their content 2021-02-15 13:26:32 -05:00
upload.php MDL-69672 core_contentbank: Check used context level 2020-09-29 17:46:10 +02:00
view.php MDL-69762 core_contentbank: let users hide their content 2021-02-15 13:26:32 -05:00