Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reactivating coverage #125

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions tests/DoctrineTest/Coverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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;
}

/**
Expand All @@ -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();
Expand All @@ -160,6 +162,10 @@ public function generateReport()
continue;
}

if (strpos($class, 'sfYaml')) {
continue;
}

if ( ! class_exists($class)) {
continue;
}
Expand Down
Loading