diff --git a/src/BrowserTest.php b/src/BrowserTest.php index 6c6d135..a7e6a25 100644 --- a/src/BrowserTest.php +++ b/src/BrowserTest.php @@ -12,8 +12,8 @@ abstract class BrowserTest extends \PHPUnit_Extensions_Selenium2TestCase{ if(! $host=getenv('SeleniumHost')){ $host='localhost'; } - if(! $port=getenv('SeleniumPort')){ - $port='4444'; + if(! $port=(int)getenv('SeleniumPort')){ + $port=4444; } $this->setHost($host); $this->setPort($port);