We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eaf01d7 + 3998173 commit fd0f7b7Copy full SHA for fd0f7b7
tests/bootstrap.php
@@ -27,15 +27,9 @@
27
: '2.x.x'
28
);
29
30
-/**
31
- * Compatibility with PHPUnit 6+
32
- */
33
-if ( class_exists( 'PHPUnit\Runner\Version' ) ) {
34
- require_once __DIR__ . '/phpunit6-compat.php';
35
-}
36
-
37
require_once VENDOR_DIR . '/autoload.php';
38
require_once WP_CLI_ROOT . '/php/utils.php';
+require_once __DIR__ . '/wp-cli-testcase.php';
39
40
function wpcli_tests_include_config( array $config_filenames = [] ) {
41
$config_filename = false;
tests/wp-cli-testcase.php
@@ -0,0 +1,12 @@
1
+<?php
2
+
3
+namespace WP_CLI\Tests;
4
5
+use Yoast\PHPUnitPolyfills\TestCases\TestCase as PolyfilledTestCase;
6
7
+/**
8
+ * WP-CLI base test case.
9
+ */
10
+class TestCase extends PolyfilledTestCase {
11
12
+}
0 commit comments