diff --git a/tests/Predis/PubSub/ConsumerTest.php b/tests/Predis/PubSub/ConsumerTest.php index 32c7c2d2..55354a2c 100644 --- a/tests/Predis/PubSub/ConsumerTest.php +++ b/tests/Predis/PubSub/ConsumerTest.php @@ -364,11 +364,9 @@ class ConsumerTest extends PredisTestCase */ public function testPubSubAgainstRedisServer(): void { - if (getenv('GITHUB_ACTIONS') || getenv('TRAVIS')) { - $this->markTestSkipped( - 'Test temporarily skipped on CI environments, see note in the body of the test' - ); - } + $this->markTestSkippedOnCIEnvironment( + 'Test temporarily skipped on CI environments, see note in the body of the test' // TODO + ); $parameters = array( 'host' => constant('REDIS_SERVER_HOST'), @@ -415,11 +413,9 @@ class ConsumerTest extends PredisTestCase */ public function testPubSubAgainstRedisServerBlocking(): void { - if (getenv('GITHUB_ACTIONS') || getenv('TRAVIS')) { - $this->markTestSkipped( - 'Test temporarily skipped on CI environments, see note in the body of the test' - ); - } + $this->markTestSkippedOnCIEnvironment( + 'Test temporarily skipped on CI environments, see note in the body of the test' // TODO + ); $parameters = array( 'host' => constant('REDIS_SERVER_HOST'),