We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dc1e82 commit 9624105Copy full SHA for 9624105
tests/Common/Report/Crap4jTest.php
@@ -27,6 +27,19 @@ public function testProcess()
27
return;
28
}
29
30
- $this->markTestIncomplete();
+ $report = $this->getMockBuilder('SebastianBergmann\CodeCoverage\Report\Crap4j')
31
+ ->disableOriginalConstructor()
32
+ ->getMock();
33
+
34
+ $coverage = $this->createMock('SebastianBergmann\CodeCoverage\CodeCoverage');
35
+ $coverage->expects($this->once())
36
+ ->method('getReport')
37
+ ->will($this->returnValue($report));
38
39
+ $report = new Crap4j();
40
+ $result = $report->process($coverage);
41
42
+ $this->assertTrue(strpos($result, '<?xml version="1.0" encoding="UTF-8"?>') === 0);
43
44
45
0 commit comments