Skip to content

Commit 29aaf73

Browse files
committed
Fixed test?
1 parent 6b7d0f4 commit 29aaf73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Symfony/Component/Semaphore/Tests/Store/RedisStoreTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ class RedisStoreTest extends AbstractRedisStoreTest
2020
{
2121
public static function setUpBeforeClass(): void
2222
{
23-
if (!@((new \Redis())->connect(getenv('REDIS_HOST')))) {
24-
$e = error_get_last();
25-
self::markTestSkipped($e['message']);
23+
try {
24+
(new \Redis())->connect(getenv('REDIS_HOST'));
25+
} catch (\Exception $e) {
26+
self::markTestSkipped($e->getMessage());
2627
}
2728
}
2829

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy