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()); } }