Changeset 51563 for trunk/tests/phpunit/tests/dependencies/scripts.php
- Timestamp:
- 08/06/2021 09:38:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/scripts.php
r51462 r51563 1425 1425 if ( $warning ) { 1426 1426 if ( PHP_VERSION_ID < 80000 ) { 1427 $this->expect Exception( 'PHPUnit_Framework_Error_Warning');1427 $this->expectWarning(); 1428 1428 } else { 1429 // As this exception will only be set on PHP 8 in combination with PHPUnit 7, this will work (for now). 1429 /* 1430 * As this exception will only be set on PHP 8 in combination with PHPUnit 7, this will work (for now). 1431 * Once the PHPUnit version constraints have been widened and a _supported_ PHPUnit version is 1432 * used to run the tests on PHP 8.x, this should be changed to `$this->expectError()`. 1433 */ 1430 1434 $this->expectException( 'Error' ); 1431 1435 }
Note: See TracChangeset
for help on using the changeset viewer.