diff --git a/PHP/CodeCoverage/Report/Node.php b/PHP/CodeCoverage/Report/Node.php index 0f43a6e36..849148e3a 100644 --- a/PHP/CodeCoverage/Report/Node.php +++ b/PHP/CodeCoverage/Report/Node.php @@ -120,7 +120,7 @@ public function getId() $parentId = $parent->getId(); if ($parentId == 'index') { - $this->id = $this->name; + $this->id = str_replace(':', '_', $this->name); } else { $this->id = $parentId . '_' . $this->name; }