Conditions | 2 |
Paths | 2 |
Total Lines | 26 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function testToXML() |
||
29 | { |
||
30 | $data = array( |
||
31 | 'text' => 'just a random text', |
||
32 | 'nbOfItems' => time(), |
||
33 | ); |
||
34 | |||
35 | $expectedDocument = self::createDomDocument(); |
||
36 | $line = $expectedDocument->createElement('orderLine'); |
||
37 | foreach ($data as $key => $value) { |
||
38 | $line->appendChild( |
||
39 | $expectedDocument->createElement($key, $value) |
||
40 | ); |
||
41 | } |
||
42 | $expectedDocument->appendChild($line); |
||
43 | |||
44 | $actualDocument = self::createDomDocument(); |
||
45 | $line = new Line( |
||
46 | $data['text'], |
||
47 | $data['nbOfItems'] |
||
48 | ); |
||
49 | $actualDocument->appendChild( |
||
50 | $line->toXML($actualDocument, null) |
||
51 | ); |
||
52 | |||
53 | $this->assertEquals($expectedDocument, $actualDocument); |
||
54 | } |
||
56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths