private function suiteByPath($path, array $paraSuites) { foreach ($paraSuites as $completePath => $suite) { if (strstr($completePath, $path)) { return $suite; } } throw new \RuntimeException("Suite {$path} not found."); }