Remove duplicate catch block
This commit is contained in:
parent
a4dee4aaba
commit
32cac1c6f2
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user