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 |
||
|---|---|---|
| .. | ||
| logger | ||
| DeprecationHelperTest.php | ||
| MWDebugTest.php | ||
| TestDeprecatedClass.php | ||
| TestDeprecatedSubclass.php | ||