From cb7266ebcbb50a3236ba14b6e84bf7ba1122b29d Mon Sep 17 00:00:00 2001 From: Nathanael Mehlhorn Date: Wed, 4 Sep 2024 12:08:23 +0200 Subject: [PATCH] Revert "Revert "fix"" This reverts commit e329986780350d622cf0cb25753f6b9aab9b82b8. --- Tests/Unit/Common/XmlDocumentTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Tests/Unit/Common/XmlDocumentTest.php b/Tests/Unit/Common/XmlDocumentTest.php index 3072ba3..07b145e 100644 --- a/Tests/Unit/Common/XmlDocumentTest.php +++ b/Tests/Unit/Common/XmlDocumentTest.php @@ -191,6 +191,12 @@ public function testSplitSymbols() //TODO: Should compare Json to Json, but splitsymbol Strings are not valid //->Discuss - self::assertTrue(true); + self::assertEquals(trim($this->processString($jsonString)),trim($this->processString($subject->toJson()))); + } + + private function processString(String $str) { + + return str_replace(array("\n"," "),'',$str); + } }