better screenshot filename

This commit is contained in:
James 2019-09-18 12:37:00 +00:00
parent 7dc82beec7
commit 1e4d29039c

View File

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