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()
6262
6363 $ this ->session = $ this ->driver ->session ();
6464 } 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+ ) {
6668 $ this ->markTestSkipped ('selenium server not running ' );
6769 } else {
6870 throw $ e ;
@@ -81,7 +83,9 @@ public function testStatus()
8183 try {
8284 $ status = $ this ->driver ->status ();
8385 } 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+ ) {
8589 $ this ->markTestSkipped ('selenium server not running ' );
8690 } else {
8791 throw $ e ;
You can’t perform that action at this time.
0 commit comments