fix screenshot filename

This commit is contained in:
James 2019-09-23 12:20:11 +01:00
parent 9b985107fe
commit ba63cceeb1

View File

@ -22,7 +22,7 @@ abstract class BrowserTest extends \PHPUnit_Extensions_Selenium2TestCase{
if ($this->hasFailed()) {
if($path=getenv('SeleniumScreenshotPath')){
$filedata = $this->currentScreenshot();
file_put_contents($path.get_class($this).':'.$this->getName().'.png', $filedata);
file_put_contents($path.get_class($this).'::'.$this->getName().'.png', $filedata);
}
}
$this->stop();