From 86af4c771b613d9bcf4900b1f1f99352516b4b67 Mon Sep 17 00:00:00 2001 From: meus Date: Sat, 11 Aug 2007 13:45:51 +0000 Subject: [PATCH] fixing cc report --- tests/cc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/cc.php b/tests/cc.php index 0f888ef01..49ce903ef 100644 --- a/tests/cc.php +++ b/tests/cc.php @@ -126,13 +126,15 @@ class Doctrine_Coverage_Report if( strpos($file->getPathname(), ".svn")){ continue; } - $path = Doctrine::getPath() . DIRECTORY_SEPERATOR; + $path = Doctrine::getPath() . DIRECTORY_SEPARATOR; $coveredPath = str_replace($path, $this->path, $file->getPathname()); if( isset($this->coverage[$coveredPath])){ 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')) { continue; }