diff --git a/src/BrowserTest.php b/src/BrowserTest.php index 930ea8d..e5dcd1d 100644 --- a/src/BrowserTest.php +++ b/src/BrowserTest.php @@ -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();