diff --git a/src/XMLReader/XMLReader.php b/src/XMLReader/XMLReader.php index b8dc38f..dce5f85 100644 --- a/src/XMLReader/XMLReader.php +++ b/src/XMLReader/XMLReader.php @@ -49,6 +49,13 @@ protected function element($name) return $this->document()->createElement($name); } + /** + * @param \SimpleXMLElement $element + * + * @return array|string + * + * @codeCoverageIgnore + */ protected function _asData(\SimpleXMLElement $element) { $output = []; @@ -78,6 +85,13 @@ protected function _asData(\SimpleXMLElement $element) return $output; } + /** + * @param \SimpleXMLElement $element + * + * @return array|string + * + * @codeCoverageIgnore + */ protected function _asArray(\SimpleXMLElement $element) { $output = $this->_asData($element); diff --git a/tests/XMLReaderTest.php b/tests/XMLReaderTest.php index 9bc3cb4..833bcb6 100644 --- a/tests/XMLReaderTest.php +++ b/tests/XMLReaderTest.php @@ -29,7 +29,7 @@ public function setUp() public function testArray() { $xml = $this->xml->asXML($this->storage); - + $this->assertArraySubset( $this->storage['person'], $this->xml->asArray($xml)['person']