| Conditions | 2 |
| Paths | 2 |
| Total Lines | 26 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function testCreateFromXML() |
||
| 29 | { |
||
| 30 | $data = array( |
||
| 31 | 'CustomLabel' => 'CustomLabel', |
||
| 32 | 'OrderNumber' => '1', |
||
| 33 | 'PackstationID' => '14472', |
||
| 34 | ); |
||
| 35 | |||
| 36 | $document = self::createDomDocument(); |
||
| 37 | $customerPackStationElement = $document->createElement('CustomerPackStation'); |
||
| 38 | foreach ($data as $key => $value) { |
||
| 39 | $customerPackStationElement->appendChild( |
||
| 40 | $document->createElement($key, $value) |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | $document->appendChild($customerPackStationElement); |
||
| 44 | |||
| 45 | $customerPackStation = CustomerPackStation::createFromXML( |
||
| 46 | simplexml_load_string( |
||
| 47 | $document->saveXML() |
||
| 48 | ) |
||
| 49 | ); |
||
| 50 | |||
| 51 | $this->assertSame($data['CustomLabel'], $customerPackStation->getCustomLabel()); |
||
| 52 | $this->assertSame($data['OrderNumber'], $customerPackStation->getOrderNumber()); |
||
| 53 | $this->assertSame($data['PackstationID'], $customerPackStation->getPackstationId()); |
||
| 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