Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Replace
expectException()
for PHP native errors with calls t…
…o the dedicated PHPUnit 8.4+ methods. The old manner of testing these is soft deprecated as of PHPUnit 8.4, hard deprecated as of PHPUnit 9.0 and will be removed in PHPUnit 10.0. Most calls like this were already replaced in [51563], however, this particular one could not be changed yet due to the mismatch between the PHPUnit version and the PHP version on which the tests were being run. This is fixed now. References: * https://github.com/sebastianbergmann/phpunit/blob/8.4.3/ChangeLog-8.4.md#840---2019-10-04 * sebastianbergmann/phpunit#3775 Follow-up to [51559-51575]. Props jrf. See #46149. git-svn-id: https://develop.svn.wordpress.org/trunk@51576 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information