diff --git a/tests/DoctrineTest/Coverage.php b/tests/DoctrineTest/Coverage.php index 4307124b0..02909a900 100644 --- a/tests/DoctrineTest/Coverage.php +++ b/tests/DoctrineTest/Coverage.php @@ -46,6 +46,8 @@ class DoctrineTest_Coverage private $totalnotcovered = 0; private $result; + public $sortBy; + /* * Create a new Coverage object. We read data from a fixed file. */ @@ -113,11 +115,14 @@ public function showSummary() /** * Return the revision the coverage was made against * - *@param int The revision number + * @return int The revision number + * @deprecated Coverage revision is not supported anymore. */ public function getRevision() { - return $this->result["revision"]; + trigger_error('Coverage revision is not supported anymore.', E_USER_DEPRECATED); + + return 0; } /** @@ -138,9 +143,6 @@ public function getRevision() */ public function generateReport() { - $svn_info = explode(" ", exec("svn info | grep Revision")); - $this->result["revision"] = $svn_info[1]; - //loop through all files and generate coverage files for them $it = new RecursiveDirectoryIterator(Doctrine_Core::getPath()); $notCoveredArray = array(); @@ -160,6 +162,10 @@ public function generateReport() continue; } + if (strpos($class, 'sfYaml')) { + continue; + } + if ( ! class_exists($class)) { continue; }