8000 Merge branch '6.4' into 7.1 · symfony/symfony@f2910d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit f2910d5

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: Fix missing class import
2 parents 45700d7 + 5df912c commit f2910d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Cache/Tests/Traits/RedisTraitTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,18 @@ public static function provideCreateConnection(): array
9090
public function testPconnectSelectsCorrectDatabase()
9191
{
9292
if (!class_exists(\Redis::class)) {
93-
throw new SkippedTestSuiteError('The "Redis" class is required.');
93+
self::markTestSkipped('The "Redis" class is required.');
9494
}
9595
if (!getenv('REDIS_HOST')) {
96-
throw new SkippedTestSuiteError('REDIS_HOST env var is not defined.');
96+
self::markTestSkipped('REDIS_HOST env var is not defined.');
9797
}
9898
if (!\ini_get('redis.pconnect.pooling_enabled')) {
99-
throw new SkippedTestSuiteError('The bug only occurs when pooling is enabled.');
99+
self::markTestSkipped('The bug only occurs when pooling is enabled.');
100100
}
101101

102102
// Limit the connection pool size to 1:
103103
if (false === $prevPoolSize = ini_set('redis.pconnect.connection_limit', 1)) {
104-
throw new SkippedTestSuiteError('Unable to set pool size');
104+
self::markTestSkipped('Unable to set pool size');
105105
}
106106

107107
try {

0 commit comments

Comments
 (0)
0