zangra-dev /
bpost-api-library
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Tests\Bpost\Label; |
||
| 4 | |||
| 5 | use Bpost\BpostApiClient\Bpost\Label\Barcode; |
||
| 6 | use PHPUnit_Framework_TestCase; |
||
|
0 ignored issues
–
show
|
|||
| 7 | use SimpleXMLElement; |
||
| 8 | |||
| 9 | class BarcodeTest extends PHPUnit_Framework_TestCase |
||
| 10 | { |
||
| 11 | private function getBarcodeXml() |
||
| 12 | { |
||
| 13 | return <<<XML |
||
| 14 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
||
| 15 | <barcodeWithReference xmlns="http://schema.post.be/shm/deepintegration/v3/" xmlns:ns2="http://schema.post.be/shm/deepintegration/v3/common" xmlns:ns3="http://schema.post.be/shm/deepintegration/v3/national" xmlns:ns4="http://schema.post.be/shm/deepintegration/v3/international"> |
||
| 16 | <barcode>323299901059912015292030</barcode> |
||
| 17 | <reference>test_barcode_with_reference</reference> |
||
| 18 | </barcodeWithReference> |
||
| 19 | XML; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testCreateFromXML() |
||
| 23 | { |
||
| 24 | $self = Barcode::createFromXML(new SimpleXMLElement($this->getBarcodeXml())); |
||
| 25 | |||
| 26 | $this->assertSame('323299901059912015292030', $self->getBarcode()); |
||
| 27 | $this->assertSame('test_barcode_with_reference', $self->getReference()); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
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