Skip to content

Commit

Permalink
Skip this test in PHP 7.4 because of PHPUnit deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Oct 28, 2019
1 parent 8d17505 commit 9ff653e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/phpunit/test-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,9 @@ public function test_setup_connection_throws_exception() {
if ( ! class_exists( 'Redis' ) ) {
$this->markTestSkipped( 'PHPRedis extension not available.' );
}
if ( version_compare( PHP_VERSION, '7.4.0' ) >= 0 ) {
$this->markTestSkipped( 'Test fails unexpectedly in PHP 7.4' );
}

$redis = $this->getMockBuilder( 'Redis' )->getMock();
$redis->method( 'select' )
Expand Down

0 comments on commit 9ff653e

Please sign in to comment.