private function saveScreenshot() { $screenshotFilename = $this->getScreenshotDestination() . DIRECTORY_SEPARATOR . $this->getShotName(); file_put_contents($screenshotFilename, parent::getScreenshot()); $this->screenshotsTaked[] = $screenshotFilename; }