From 1931ed497f7e702f13d95a58ceab5216be1307c6 Mon Sep 17 00:00:00 2001 From: Christopher Joe Date: Mon, 4 Jul 2016 17:25:53 +1200 Subject: [PATCH] Fix unit test for xml content check --- tests/api/XMLDataFormatterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/XMLDataFormatterTest.php b/tests/api/XMLDataFormatterTest.php index 2770b4334..7c48a7b23 100644 --- a/tests/api/XMLDataFormatterTest.php +++ b/tests/api/XMLDataFormatterTest.php @@ -55,7 +55,7 @@ class XMLDataFormatterTest extends SapphireTest { $page->Content = '[test_shortcode,id=-1]'; $xml = new SimpleXMLElement('' . $formatter->convertDataObjectWithoutHeader($page)); - $this->assertEmpty('', (string)$xml->Content); + $this->assertEmpty((string)$xml->Content); $page->Content = '[bad_code,id=1]';