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
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 {
You can’t perform that action at this time.
0 commit comments