From 5f41b37770f4b3606916f909b663e84523d45dc6 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 27 Dec 2021 16:08:46 +0100 Subject: [PATCH] test dns entry string without any whitespaces/tabs/etc. Signed-off-by: Michael Kaufmann --- tests/DomainZones/DomainZonesTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/DomainZones/DomainZonesTest.php b/tests/DomainZones/DomainZonesTest.php index dc6424ac..47f1d806 100644 --- a/tests/DomainZones/DomainZonesTest.php +++ b/tests/DomainZones/DomainZonesTest.php @@ -36,7 +36,9 @@ class DomainZonesTest extends TestCase $result = json_decode($json_result, true)['data']; $this->assertTrue(count($result) > 1); $this->assertEquals('$ORIGIN test2.local.', $result[1]); - $this->assertEquals('@ 604800 IN MX 10 mx.hostname.tld.', $result[count($result)-2]); + $resstr = preg_replace('/\s+/', '', $result[count($result)-2]); + $against = preg_replace('/\s+/', '', '@ 604800 IN MX 10 mx.hostname.tld.'); + $this->assertEquals($against, $resstr); } /**