Skip to content

Commit d81b53a

Browse files
committed
Removed revision and triggered deprecation.
1 parent 8137a39 commit d81b53a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/DoctrineTest/Coverage.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,14 @@ public function showSummary()
115115
/**
116116
* Return the revision the coverage was made against
117117
*
118-
*@param int The revision number
118+
* @return int The revision number
119+
* @deprecated Coverage revision is not supported anymore.
119120
*/
120121
public function getRevision()
121122
{
122-
return $this->result["revision"];
123+
trigger_error('Coverage revision is not supported anymore.', E_USER_DEPRECATED);
124+
125+
return 0;
123126
}
124127

125128
/**
@@ -140,10 +143,6 @@ public function getRevision()
140143
*/
141144
public function generateReport()
142145
{
143-
// $svn_info = explode(" ", exec("svn info | grep Revision"));
144-
$svn_info = 'svn is not used anymore. maybe adding some git infos or drop it?';
145-
$this->result["revision"] = $svn_info[1];
146-
147146
//loop through all files and generate coverage files for them
148147
$it = new RecursiveDirectoryIterator(Doctrine_Core::getPath());
149148
$notCoveredArray = array();

0 commit comments

Comments
 (0)