Changeset 47880
- Timestamp:
- 06/01/2020 07:41:50 PM (5 years ago)
- Location:
- trunk/tests/phpunit/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r47198 r47880 13 13 * All WordPress unit tests should inherit from this class. 14 14 */ 15 abstract class WP_UnitTestCase_Base extends PHPUnit _Framework_TestCase {15 abstract class WP_UnitTestCase_Base extends PHPUnit\Framework\TestCase { 16 16 17 17 protected static $forced_tickets = array(); -
trunk/tests/phpunit/includes/bootstrap.php
r47496 r47880 38 38 require_once __DIR__ . '/functions.php'; 39 39 40 if ( version_compare( tests_get_phpunit_version(), ' 8.0', '>=' ) ) {40 if ( version_compare( tests_get_phpunit_version(), '5.4', '<' ) || version_compare( tests_get_phpunit_version(), '8.0', '>=' ) ) { 41 41 printf( 42 "Error: Looks like you're using PHPUnit %s. WordPress is currently only compatible with PHPUnit up to 7.x.\n",42 "Error: Looks like you're using PHPUnit %s. WordPress requires at least PHPUnit 5.4 and is currently only compatible with PHPUnit up to 7.x.\n", 43 43 tests_get_phpunit_version() 44 44 ); -
trunk/tests/phpunit/includes/functions.php
r47250 r47880 11 11 $version = PHPUnit_Runner_Version::id(); 12 12 } elseif ( class_exists( 'PHPUnit\Runner\Version' ) ) { 13 // Must be parsable by PHP 5.2.x. 14 $version = call_user_func( 'PHPUnit\Runner\Version::id' ); 13 $version = PHPUnit\Runner\Version::id(); 15 14 } else { 16 15 $version = 0;
Note: See TracChangeset
for help on using the changeset viewer.