Commit 86af4c77 authored by meus's avatar meus

fixing cc report

parent d1a9e7a7
...@@ -126,13 +126,15 @@ class Doctrine_Coverage_Report ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment