Skip to content

Commit de5b06b

Browse files
peterrehmnicolas-grekas
authored andcommitted
Refactored other PHPUnit method calls to work with namespaced PHPUnit 6
1 parent 5ccca18 commit de5b06b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Tests/Functional/CachePoolsTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public function testRedisCachePools()
3939
{
4040
try {
4141
$this->doTestCachePools(array('root_config' => 'redis_config.yml', 'environment' => 'redis_cache'), RedisAdapter::class);
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());
4247
} catch (\PHPUnit_Framework_Error_Warning $e) {
4348
if (0 !== strpos($e->getMessage(), 'unable to connect to')) {
4449
throw $e;
@@ -59,6 +64,11 @@ public function testRedisCustomCachePools()
5964
{
6065
try {
6166
$this->doTestCachePools(array('root_config' => 'redis_custom_config.yml', 'environment' => 'custom_redis_cache'), RedisAdapter::class);
67+
} catch (\PHPUnit\Framework\Error\Warning $e) {
68+
if (0 !== strpos($e->getMessage(), 'unable to connect to')) {
69+
throw $e;
70+
}
71+
$this->markTestSkipped($e->getMessage());
6272
} catch (\PHPUnit_Framework_Error_Warning $e) {
6373
if (0 !== strpos($e->getMessage(), 'unable to connect to')) {
6474
throw $e;

0 commit comments

Comments
 (0)