Skip to content

Commit 36c997c

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@51575 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8def694 commit 36c997c

21 files changed

+0
-945
lines changed

phpcs.xml.dist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@
134134
<exclude-pattern>/src/wp-includes/sodium_compat/*</exclude-pattern>
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>
141139
<exclude-pattern>/tests/phpunit/data/*</exclude-pattern>

tests/phpunit/includes/bootstrap.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
4646
exit( 1 );
4747
}
4848

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 );
52-
5349
// Check that the PHPUnit Polyfills autoloader exists.
5450
$phpunit_polyfills_autoloader = __DIR__ . '/../../../vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php';
5551
if ( ! file_exists( $phpunit_polyfills_autoloader ) ) {

tests/phpunit/includes/class-mockobject-autoload.php

Lines changed: 0 additions & 63 deletions
This file was deleted.

tests/phpunit/includes/phpunit7/MockObject/Builder/NamespaceMatch.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

tests/phpunit/includes/phpunit7/MockObject/Builder/ParametersMatch.php

Lines changed: 0 additions & 66 deletions
This file was deleted.

tests/phpunit/includes/phpunit7/MockObject/Generator/deprecation.tpl.dist

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/phpunit/includes/phpunit7/MockObject/Generator/mocked_class.tpl.dist

Lines changed: 0 additions & 46 deletions
This file was deleted.

tests/phpunit/includes/phpunit7/MockObject/Generator/mocked_class_method.tpl.dist

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/phpunit/includes/phpunit7/MockObject/Generator/mocked_clone.tpl.dist

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/phpunit/includes/phpunit7/MockObject/Generator/mocked_method.tpl.dist

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)