diff --git a/phpunit.xml b/phpunit.xml index 70113e8..725880c 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,13 +1,13 @@ - @@ -16,8 +16,15 @@ + + + + ./tests/ + + + diff --git a/src/BrowserTest.php b/src/BrowserTest.php index 11f059d..8761062 100644 --- a/src/BrowserTest.php +++ b/src/BrowserTest.php @@ -6,7 +6,9 @@ abstract class BrowserTest extends \PHPUnit_Extensions_Selenium2TestCase{ public function setUp(){ $this->setHost('localhost'); $this->setPort(4444); - $this->setDesiredCapabilities(['moz:firefoxOptions'=>['args'=>['-headless','screenshot','window-size='.getenv('SeleniumWindowSize')]]]); + $args=explode(',',getenv('SeleniumBrowserArgs')); + $args[]='screenshot'; + $this->setDesiredCapabilities(['moz:firefoxOptions'=>['args'=>$args]]); $this->setBrowserUrl(getenv('SeleniumBrowserUrl')); $this->setBrowser(getenv('SeleniumBrowser')); }