wiki.techinc.nl/tests/phpunit/includes/debug
Petr Pchelko ac629eed2d DeprecationHelper: Support mocking and dynamic properties
DeprecationHelper currently breaks dynamic properties
on phpunit mocks. This happens because phpunit starts
mocking the magic methods if they're explicitly defined.

By default, magic methods and up doing nothing, but
if proxying to original methods is enabled, magic methods
are called like regular methods, regarless of whether
property exists or not. With this patch we can workaround
this issue, and create mocks for classes with deprecations.

Needed-By: I4297aea3489bb66c98c664da2332584c27793bfa
Change-Id: Id60a7751ece05669eced6eddd3216da7149411c7
2021-08-04 12:38:02 -07:00
..
logger Use ::class for class name 2021-04-08 21:17:42 +02:00
DeprecationHelperTest.php DeprecationHelper: Support mocking and dynamic properties 2021-08-04 12:38:02 -07:00
MWDebugTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
TestDeprecatedClass.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
TestDeprecatedSubclass.php