From 129dfae5f07793708f8c13b868f1c6d9856e7601 Mon Sep 17 00:00:00 2001 From: Vasily Belosloodcev Date: Sat, 7 Jan 2023 14:19:51 +0500 Subject: [PATCH] added some tests --- tests/XmlConstructTest.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/XmlConstructTest.php b/tests/XmlConstructTest.php index 181dfeb..5940a4d 100644 --- a/tests/XmlConstructTest.php +++ b/tests/XmlConstructTest.php @@ -215,6 +215,27 @@ public function testCustomIndentString3() $this->assertEquals($expected, $out); } + /** + * @since 2.0.1 + */ + public function testCustomIndentString4() + { + $expected = << + + +content2 + +content4 + + + +XML; + $xml = new XmlConstructor(['indentString' => '']); + $out = $xml->fromArray($this->in1)->toOutput(); + $this->assertEquals($expected, $out); + } + /** * @since 1.3.0 */