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.
1 parent 619c90d commit 4c34c16Copy full SHA for 4c34c16
src/WPPPB/Loader.php
@@ -227,12 +227,21 @@ public function locate_wp_tests_config() {
227
public function phpunit_compat() {
228
229
if ( class_exists( 'PHPUnit\Runner\Version' ) ) {
230
+
231
/**
232
* Compatibility with PHPUnit 6+.
233
*
234
* @since 0.3.2
235
*/
236
require_once $this->get_wp_tests_dir() . '/includes/phpunit6-compat.php';
237
238
+ if ( version_compare( PHPUnit\Runner\Version::id(), '6.0', '>=' ) ) {
239
240
+ class_alias(
241
+ 'PHPUnit\Framework\Constraint\Constraint'
242
+ , 'PHPUnit_Framework_Constraint'
243
+ );
244
+ }
245
}
246
247
0 commit comments