File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ public function testSessions()
62
62
63
63
$ this ->session = $ this ->driver ->session ();
64
64
} catch (\Exception $ e ) {
65
- if (strpos ($ e ->getMessage (),'Failed connect to localhost:4444; Connection refused ' ) !== false ) {
65
+ if (strpos ($ e ->getMessage (),'Failed connect to localhost:4444; Connection refused ' ) !== false
66
+ || strpos ($ e ->getMessage (), 'couldn \'t connect to host ' ) !== false
67
+ ) {
66
68
$ this ->markTestSkipped ('selenium server not running ' );
67
69
} else {
68
70
throw $ e ;
@@ -81,7 +83,9 @@ public function testStatus()
81
83
try {
82
84
$ status = $ this ->driver ->status ();
83
85
} catch (\Exception $ e ) {
84
- if (strpos ($ e ->getMessage (),'Failed connect to localhost:4444; Connection refused ' ) !== false ) {
86
+ if (strpos ($ e ->getMessage (),'Failed connect to localhost:4444; Connection refused ' ) !== false
87
+ || strpos ($ e ->getMessage (), 'couldn \'t connect to host ' ) !== false
88
+ ) {
85
89
$ this ->markTestSkipped ('selenium server not running ' );
86
90
} else {
87
91
throw $ e ;
You can’t perform that action at this time.
0 commit comments