diff --git a/test/lib/coverage.php b/test/lib/coverage.php index a44b785ead..f1d751f028 100644 --- a/test/lib/coverage.php +++ b/test/lib/coverage.php @@ -444,7 +444,7 @@ class coverage if(!$moduleName) { preg_match('/extension\/[^\/]+\/([^\/]+)/', $filePath, $extMatches); - $moduleName = $extMatches[1]; + $moduleName = empty($extMatches[1]) ? '' : $extMatches[1]; } return $moduleName;