Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testLoadXML() |
||
11 | { |
||
12 | $xmlReport = new JacocoReport(__DIR__ . '/fixtures/jacoco.xml'); |
||
13 | $coveredLines = $xmlReport->getLines(); |
||
14 | $expected = [ |
||
15 | 'org/jacoco/examples/maven/java/HelloWorld.java' => [ |
||
16 | 3 => true, |
||
17 | 6 => true, |
||
18 | 7 => false, |
||
19 | 9 => true, |
||
20 | ], |
||
21 | 'org/jacoco/examples/maven/java/New/HelloWorld.java' => [ |
||
22 | 3 => false, |
||
23 | 6 => false, |
||
24 | 7 => false, |
||
25 | 9 => false, |
||
26 | ] |
||
27 | |||
28 | ]; |
||
29 | |||
30 | $this->assertEquals($expected, $coveredLines); |
||
31 | } |
||
32 | } |
||
33 |