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()
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 ;
You can’t perform that action at this time.
0 commit comments