/**
* @return string
*/
public function getSpecFilename()
{
if ($this->locator->isPSR4()) {
return $this->locator->getFullSpecPath() . implode(DIRECTORY_SEPARATOR, $this->parts) . 'Spec.php';
}
$nsParts = $this->parts;
$classname = array_pop($nsParts);
$parts = array_merge($nsParts, explode('_', $classname));
return $this->locator->getFullSpecPath() . implode(DIRECTORY_SEPARATOR, $parts) . 'Spec.php';
}