WordPress.org

Make WordPress Core

Changeset 51575


Ignore:
Timestamp:
08/07/2021 11:44:00 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Remove the copied-in PHPUnit 9.x MockObject files.

As the version constraints for PHPUnit now allow the tests to be run on PHPUnit 8.x and 9.x, these files are no longer needed.

Follow-up to [48957], [49037], [51544], [51559-51574].

Props jrf.
See #46149.

Location:
trunk
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r51573 r51575  
    135135    <exclude-pattern>/src/wp-includes/Text/*</exclude-pattern>
    136136
    137     <exclude-pattern>/tests/phpunit/includes/phpunit7/MockObject/*</exclude-pattern>
    138 
    139137    <!-- Test data and fixtures. -->
    140138    <exclude-pattern>/tests/phpunit/build*</exclude-pattern>
  • trunk/tests/phpunit/includes/bootstrap.php

    r51574 r51575  
    4646    exit( 1 );
    4747}
    48 
    49 // Register a custom autoloader for the PHPUnit 9.x Mockobject classes for compatibility with PHP 8.0.
    50 require_once __DIR__ . '/class-mockobject-autoload.php';
    51 spl_autoload_register( 'MockObject_Autoload::load', true, true );
    5248
    5349// Check that the PHPUnit Polyfills autoloader exists.
Note: See TracChangeset for help on using the changeset viewer.