Skip to content

Commit

Permalink
Removed revision and triggered deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
thirsch committed Feb 22, 2024
1 parent 8137a39 commit d81b53a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/DoctrineTest/Coverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand All @@ -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();
Expand Down

0 comments on commit d81b53a

Please sign in to comment.