Make WordPress Core

Changeset 49037 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
09/23/2020 01:52:02 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Tests: Backport two changes from PHPUnit 9.3:

  • Replace the Match interface with ParametersMatch, to avoid parse errors due to match being a reserved keyword in PHP 8.
  • Replace ReflectionParameter::getClass() usage, which is deprecated in PHP 8.

This allows tests relying on the getMockForAbstractClass() and getMockBuilder() methods to run again on PHP 8.

When the test suite is updated for compatibility with PHPUnit 9.x, these overrides can be removed.

Follow-up to [48972].

See #50913, #50902.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r48072 r49037  
    135135    <exclude-pattern>/src/wp-includes/Text/*</exclude-pattern>
    136136
     137    <exclude-pattern>/tests/phpunit/includes/phpunit7/MockObject/*</exclude-pattern>
    137138    <exclude-pattern>/tests/phpunit/includes/speed-trap-listener\.php</exclude-pattern>
    138139
Note: See TracChangeset for help on using the changeset viewer.