Skip to content

Commit 1731713

Browse files
Fix.
1 parent 39f2ad7 commit 1731713

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

PHP/CodeCoverage/Report/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function create(PHP_CodeCoverage $coverage)
6565
$files = $coverage->getData();
6666
$commonPath = PHP_CodeCoverage_Util::reducePaths($files);
6767
$root = new PHP_CodeCoverage_Report_Node_Directory(
68-
$commonPath, NULL
68+
$commonPath, $commonPath, NULL
6969
);
7070

7171
self::addItems(

Tests/PHP/CodeCoverage/Report/FactoryTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public function testSomething()
7575
$this->getCoverageForBankAccount()
7676
);
7777

78+
$this->assertEquals('/usr/local/src/code-coverage/Tests/_files/', $root->getName());
79+
$this->assertEquals('/usr/local/src/code-coverage/Tests/_files/', $root->getPath());
7880
$this->assertEquals(10, $root->getNumExecutableLines());
7981
$this->assertEquals(5, $root->getNumExecutedLines());
8082
$this->assertEquals(1, $root->getNumClasses());

0 commit comments

Comments
 (0)