Skip to content

Commit

Permalink
Merge pull request #106 from geissler/1.1
Browse files Browse the repository at this point in the history
Fixed Issue #93 (Code coverage bug on Windows)
  • Loading branch information
edorian committed Jul 26, 2012
2 parents b8ffefe + a529463 commit ba9e807
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PHP/CodeCoverage/Report/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ public function getId()
public function getPath()
{
if ($this->path === NULL) {
if ($this->parent === NULL) {
if ($this->parent === NULL ||
$this->parent->getPath() == NULL
) {
$this->path = $this->name;
} else {
$this->path = $this->parent->getPath() . '/' . $this->name;
Expand Down

0 comments on commit ba9e807

Please sign in to comment.