8000 minor #41596 [FrameworkBundle] Remove duplicate catch block (OskarStark) · symfony/symfony@e658d00 · GitHub
[go: up one dir, main page]

Skip to content

Commit e658d00

Browse files
minor #41596 [FrameworkBundle] Remove duplicate catch block (OskarStark)
This PR was merged into the 4.4 branch. Discussion ---------- [FrameworkBundle] Remove duplicate catch block | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Spottet while reviewing #41576 by `@derrabus` Commits ------- 32cac1c Remove duplicate catch block
2 parents a4dee4a + 32cac1c commit e658d00

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