File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Symfony/Component/Cache/Tests/Traits Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,18 +90,18 @@ public static function provideCreateConnection(): array
90
90
public function testPconnectSelectsCorrectDatabase ()
91
91
{
92
92
if (!class_exists (\Redis::class)) {
93
- throw new SkippedTestSuiteError ('The "Redis" class is required. ' );
93
+ self :: markTestSkipped ('The "Redis" class is required. ' );
94
94
}
95
95
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. ' );
97
97
}
98
98
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. ' );
100
100
}
101
101
102
102
// Limit the connection pool size to 1:
103
103
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 ' );
105
105
}
106
106
107
107
try {
You can’t perform that action at this time.
0 commit comments