From 10d12bc454fcc49a3805aa761e4179de9c4d2797 Mon Sep 17 00:00:00 2001 From: Patrick Hausmann Date: Wed, 12 Feb 2014 16:55:35 +0100 Subject: [PATCH] Fixed not working codecoverage under windows --- PHP/CodeCoverage/Report/Node.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PHP/CodeCoverage/Report/Node.php b/PHP/CodeCoverage/Report/Node.php index dead9a824..964da0713 100644 --- a/PHP/CodeCoverage/Report/Node.php +++ b/PHP/CodeCoverage/Report/Node.php @@ -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;