From baf894d84ac0af60642a0010158fbde725eea4dc Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Mon, 18 Feb 2013 17:02:11 +1300 Subject: [PATCH] FIX CDATA sections in HTML5 are invalid so remove from test --- tests/api/XMLDataFormatterTest.php | 7 +++---- tests/api/XMLDataFormatterTest.yml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/api/XMLDataFormatterTest.php b/tests/api/XMLDataFormatterTest.php index cca690fec..941334b50 100644 --- a/tests/api/XMLDataFormatterTest.php +++ b/tests/api/XMLDataFormatterTest.php @@ -32,13 +32,12 @@ class XMLDataFormatterTest extends SapphireTest { $this->assertEquals('Test Company', (string) $xml->Company); $this->assertEquals($obj->ID, (int) $xml->ID); $this->assertEquals( - 'mysite.com is a link in this HTML content.' - . ' ]]>', + 'mysite.com is a link in this HTML content.]]>' + . '', $xml->Content->asXML() ); $this->assertEquals( - 'mysite.com is a link in this HTML content.' - . ' ', + 'mysite.com is a link in this HTML content.', (string)$xml->Content ); } diff --git a/tests/api/XMLDataFormatterTest.yml b/tests/api/XMLDataFormatterTest.yml index 951dc8d2d..48b5ef9e2 100644 --- a/tests/api/XMLDataFormatterTest.yml +++ b/tests/api/XMLDataFormatterTest.yml @@ -2,4 +2,4 @@ XMLDataFormatterTest_DataObject: test-do: Name: Test DataObject Company: Test Company - Content: mysite.com is a link in this HTML content. \ No newline at end of file + Content: mysite.com is a link in this HTML content. \ No newline at end of file