diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2021-08-07 11:00:52 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2021-08-07 11:00:52 +0000 |
commit | e8ea993ce7a4f26d0a7796a8f87a750744f34762 (patch) | |
tree | f8a4cfd08e0445a7fbeded53d99ccf0f60dd690a /tests/phpunit/includes/phpunit7/MockObject | |
parent | 60dcae95ea9cfd168571cb06dad70fa230e68464 (diff) | |
download | wordpress-e8ea993ce7a4f26d0a7796a8f87a750744f34762.tar.gz wordpress-e8ea993ce7a4f26d0a7796a8f87a750744f34762.zip |
Build/Test Tools: Handle removal of `TestCase::getAnnotations()`.
The PHPUnit native `TestCase::getAnnotations()` method is used to check for WP flavored deprecation notices, however, this method was not covered by the backward compatibility promise for PHPUnit (and was annotated as excluded).
The method has been removed as part of an internal refactor in commit [https://github.com/sebastianbergmann/phpunit/commit/68582043e149039cfa3596b42ed35753dcf54fb2 sebastianbergmann/phpunit@6858204], which is included in PHPUnit 9.5.0.
For now, a workaround is put in place, but it is recommended that the WP `expectDeprecated()` method should be reevaluated in a future iteration.
Follow-up to [51559-51571].
Props jrf.
See #46149.
git-svn-id: https://develop.svn.wordpress.org/trunk@51572 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/includes/phpunit7/MockObject')
0 files changed, 0 insertions, 0 deletions