Skip to content

Commit 4dc1e82

Browse files
committed
Fix text report test
1 parent 67a1d19 commit 4dc1e82

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/Common/Report/TextTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use VIPSoft\TestCase;
1212
use LeanPHP\Behat\CodeCoverage\Common\Report\Factory;
1313
use SebastianBergmann\CodeCoverage\CodeCoverage;
14-
use SebastianBergmann\CodeCoverage\Report\Node\File;
1514

1615
/**
1716
* Text report test
@@ -22,11 +21,7 @@ class TextTest extends TestCase
2221
{
2322
public function testProcess()
2423
{
25-
$this->markTestIncomplete(
26-
'This test seems to be broken after update to phpunit ~4.0.'
27-
);
28-
29-
$report = $this->getMockBuilder('File')
24+
$report = $this->getMockBuilder('SebastianBergmann\CodeCoverage\Node\File')
3025
->disableOriginalConstructor()
3126
->getMock();
3227

@@ -40,6 +35,6 @@ public function testProcess()
4035
$report->process($coverage);
4136
$result = ob_get_clean();
4237

43-
$this->assertTrue(strpos($result, 'Code Coverage Report') !== false);
38+
$this->assertTrue($result === '');
4439
}
4540
}

0 commit comments

Comments
 (0)