moodle/blocks/rss_client
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
..
backup
classes MDL-63785 block_rss_client: performance improvement 2018-12-10 14:52:13 +11:00
db MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
lang/en MDL-66003 lang: Import fixed English strings (en_fix) 2019-06-25 18:00:51 +02:00
templates MDL-67735 theme_boost: remove bs2 and bs4alpha compatibility css 2020-08-17 08:16:42 +00:00
tests MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
block_rss_client.php MDL-68233 renderers/block: remove illegal uses of $PAGE and $OUTPUT 2020-03-29 15:34:26 +01:00
edit_form.php MDL-55886 block_rss_client: fix oracle compatibility 2016-09-29 16:55:07 +01:00
editfeed.php MDL-35628 performance: Remove dirname() where possible. 2016-06-10 08:06:49 +10:00
managefeeds.php MDL-36157 block_rss_client: Don't double escape titles. 2018-03-01 09:52:32 +01:00
settings.php
styles.css MDL-55168 css: reformat plain css with stylefmt 2016-09-30 09:25:23 +01:00
version.php MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
viewfeed.php MDL-35628 performance: Remove dirname() where possible. 2016-06-10 08:06:49 +10:00