File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ public function testRedisCachePools()
39
39
{
40
40
try {
41
41
$ 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 ());
42
47
} catch (\PHPUnit_Framework_Error_Warning $ e ) {
43
48
if (0 !== strpos ($ e ->getMessage (), 'unable to connect to ' )) {
44
49
throw $ e ;
@@ -59,6 +64,11 @@ public function testRedisCustomCachePools()
59
64
{
60
65
try {
61
66
$ 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 ());
62
72
} catch (\PHPUnit_Framework_Error_Warning $ e ) {
63
73
if (0 !== strpos ($ e ->getMessage (), 'unable to connect to ' )) {
64
74
throw $ e ;
You can’t perform that action at this time.
0 commit comments