moodle/lib/antivirus/clamav
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-66222 antivirus: Added antivirus failure reporting 2020-08-21 11:43:56 +10:00
db MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
lang/en MDL-68434 lang: Import fixed English strings (en_fix) 2020-04-28 14:01:20 +02:00
tests MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
adminlib.php MDL-67990 antivirus_clamav: validate tcpsocket with unset default port 2020-05-05 09:33:25 +02:00
settings.php MDL-67504 antivirus_clamav: Add scanning tries option 2020-03-02 08:54:02 +11:00
version.php MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00