Skip to content

Commit

Permalink
Merge pull request #317 from nicjansma/master
Browse files Browse the repository at this point in the history
Fix Node::getPath() on Windows when files are on two logical disks
  • Loading branch information
sebastianbergmann committed Apr 16, 2015
2 parents 4559bee + df0f73b commit e679939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CodeCoverage/Report/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function getId()
public function getPath()
{
if ($this->path === null) {
if ($this->parent === null || $this->parent->getPath() === null) {
if ($this->parent === null || $this->parent->getPath() === null || $this->parent->getPath() === false) {
$this->path = $this->name;
} else {
$this->path = $this->parent->getPath() . '/' . $this->name;
Expand Down

0 comments on commit e679939

Please sign in to comment.