Beispiel #1
0
 /**
  * Generates a screenshot image filename
  * it uses the testcase name and the given indentifier to generate a png image name
  *
  * @param string $identifier identifies your test object
  * @return string Name of the image file
  */
 private function getScreenshotName($identifier)
 {
     $className = preg_replace('/(Cept|Cest)\\.php/', '', basename($this->test->getFileName()));
     return $className . '.' . $identifier . '.png';
 }