8000 Remove duplicate catch block · symfony/symfony@32cac1c · GitHub
[go: up one dir, main page]

Skip to content

Commit 32cac1c

Browse files
committed
Remove duplicate catch block
1 parent a4dee4a commit 32cac1c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolsTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ public function testRedisCachePools()
3939
throw $e;
4040
}
4141
$this->markTestSkipped($e->getMessage());
42-
} catch (\PHPUnit\Framework\Error\Warning $e) {
43-
if (0 !== strpos($e->getMessage(), 'unable to connect to')) {
44-
throw $e;
45-
}
46-
$this->markTestSkipped($e->getMessage());
4742
} catch (InvalidArgumentException $e) {
4843
if (0 !== strpos($e->getMessage(), 'Redis connection ')) {
4944
throw $e;
@@ -67,11 +62,6 @@ public function testRedisCustomCachePools()
6762
throw $e;
6863
}
6964
$this->markTestSkipped($e->getMessage());
70-
} catch (\PHPUnit\Framework\Error\Warning $e) {
71-
if (0 !== strpos($e->getMessage(), 'unable to connect to')) {
72-
throw $e;
73-
}
74-
$this->markTestSkipped($e->getMessage());
7565
}
7666
}
7767

0 commit comments

Comments
 (0)
0