Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darylldoyle committed Nov 15, 2023
1 parent 7ab02e5 commit e157cfb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 10up-Default/ruleset-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,16 @@
$expected['errors'][ 222 ] = 2;
}

// We have some specific errors that are only thrown on PHP 8.2+.
if ( version_compare( PHP_VERSION, '8.2.0', '<' ) ) {
$expected['errors'][ 486 ] = 0;
}

if ( version_compare( PHP_VERSION, '7.1', '=' ) ) {
$expected['errors'][ 483 ] = 5;
$expected['warnings'][ 1 ] = 1;
}

require __DIR__ . '/../tests/RulesetTest.php';

// Run the tests!
Expand Down

0 comments on commit e157cfb

Please sign in to comment.