Skip to content

Commit

Permalink
@codeCoverageIgnore
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Sep 25, 2017
1 parent de90413 commit ed29974
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/XMLReader/XMLReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/XMLReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit ed29974

Please sign in to comment.