From df0f73be86bafc0c70cf056e0e9c33e21db6e49f Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Sun, 29 Mar 2015 11:40:37 -0400 Subject: [PATCH] Fix Node::getPath() on Windows when files are on two logical disks --- src/CodeCoverage/Report/Node.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CodeCoverage/Report/Node.php b/src/CodeCoverage/Report/Node.php index 223b50c31..0475d8ecd 100644 --- a/src/CodeCoverage/Report/Node.php +++ b/src/CodeCoverage/Report/Node.php @@ -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;