Skip to content

Commit 4ab0f72

Browse files
authored
Fix compatibility with PHP 5.2
See #20
1 parent 4c34c16 commit 4ab0f72

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/WPPPB/Loader.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,10 @@ public function phpunit_compat() {
235235
*/
236236
require_once $this->get_wp_tests_dir() . '/includes/phpunit6-compat.php';
237237

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-
}
238+
class_alias(
239+
'PHPUnit\Framework\Constraint\Constraint'
240+
, 'PHPUnit_Framework_Constraint'
241+
);
245242
}
246243
}
247244

0 commit comments

Comments
 (0)