Skip to content

Commit be78bfa

Browse files
committed
update functional test for travis
1 parent 88269e6 commit be78bfa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/Test/WebDriver/WebDriverTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)