From d81b53a354f8776e74fc66dbc4722e6404a57c7e Mon Sep 17 00:00:00 2001 From: "Thomas A. Hirsch" Date: Thu, 22 Feb 2024 13:52:17 +0100 Subject: [PATCH] Removed revision and triggered deprecation. --- tests/DoctrineTest/Coverage.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/DoctrineTest/Coverage.php b/tests/DoctrineTest/Coverage.php index c649e73d..02909a90 100644 --- a/tests/DoctrineTest/Coverage.php +++ b/tests/DoctrineTest/Coverage.php @@ -115,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; } /** @@ -140,10 +143,6 @@ public function getRevision() */ public function generateReport() { - // $svn_info = explode(" ", exec("svn info | grep Revision")); - $svn_info = 'svn is not used anymore. maybe adding some git infos or drop it?'; - $this->result["revision"] = $svn_info[1]; - //loop through all files and generate coverage files for them $it = new RecursiveDirectoryIterator(Doctrine_Core::getPath()); $notCoveredArray = array();