Skip to content

Commit

Permalink
added some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bupy7 committed Jan 7, 2023
1 parent 864264a commit 129dfae
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/XmlConstructTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,27 @@ public function testCustomIndentString3()
$this->assertEquals($expected, $out);
}

/**
* @since 2.0.1
*/
public function testCustomIndentString4()
{
$expected = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<root>
<tag1 attr1="val1" attr2="val2"/>
<tag2>content2</tag2>
<tag3>
<tag4>content4</tag4>
</tag3>
</root>
XML;
$xml = new XmlConstructor(['indentString' => '']);
$out = $xml->fromArray($this->in1)->toOutput();
$this->assertEquals($expected, $out);
}

/**
* @since 1.3.0
*/
Expand Down

0 comments on commit 129dfae

Please sign in to comment.