From 32cac1c6f2e541c89b3bebe16d25b3309dc152e6 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Mon, 7 Jun 2021 21:46:40 +0200 Subject: [PATCH] Remove duplicate catch block --- .../Tests/Functional/CachePoolsTest.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolsTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolsTest.php index e6f6bbb315..fc5d64f4d2 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolsTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolsTest.php @@ -39,11 +39,6 @@ class CachePoolsTest extends AbstractWebTestCase throw $e; } $this->markTestSkipped($e->getMessage()); - } catch (\PHPUnit\Framework\Error\Warning $e) { - if (0 !== strpos($e->getMessage(), 'unable to connect to')) { - throw $e; - } - $this->markTestSkipped($e->getMessage()); } catch (InvalidArgumentException $e) { if (0 !== strpos($e->getMessage(), 'Redis connection ')) { throw $e; @@ -67,11 +62,6 @@ class CachePoolsTest extends AbstractWebTestCase throw $e; } $this->markTestSkipped($e->getMessage()); - } catch (\PHPUnit\Framework\Error\Warning $e) { - if (0 !== strpos($e->getMessage(), 'unable to connect to')) { - throw $e; - } - $this->markTestSkipped($e->getMessage()); } }