/** * @param string $className * * @return string */ protected function getTestCaseNamespace($className) { $testCaseFullClassName = ClassUtils::resolveTestCaseClassName($className, $this->testCaseClassName, $this->testDirectoryName); $components = explode('\\', $testCaseFullClassName); array_pop($components); return implode('\\', $components); }