1
0
mirror of synced 2024-12-14 23:26:04 +03:00

fixing cc report

This commit is contained in:
meus 2007-08-11 13:45:51 +00:00
parent d1a9e7a70b
commit 86af4c771b

View File

@ -126,13 +126,15 @@ class Doctrine_Coverage_Report
if( strpos($file->getPathname(), ".svn")){ if( strpos($file->getPathname(), ".svn")){
continue; continue;
} }
$path = Doctrine::getPath() . DIRECTORY_SEPERATOR; $path = Doctrine::getPath() . DIRECTORY_SEPARATOR;
$coveredPath = str_replace($path, $this->path, $file->getPathname()); $coveredPath = str_replace($path, $this->path, $file->getPathname());
if( isset($this->coverage[$coveredPath])){ if( isset($this->coverage[$coveredPath])){
continue; continue;
} }
$class = str_replace(DIRECTORY_SEPARATOR, '_', substr($file, strlen($this->path), -4)); $class = str_replace($path, "", $file->getPathname());
$class = str_replace(DIRECTORY_SEPARATOR, "_", $class);
$class = substr($class, 0,-4);
if (strpos($class, '_Interface')) { if (strpos($class, '_Interface')) {
continue; continue;
} }