Skip to content

Commit

Permalink
Fixed not working codecoverage under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hausmann committed Feb 12, 2014
1 parent 6ba4ed2 commit 10d12bc
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 @@ -135,7 +135,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 10d12bc

Please sign in to comment.