FIX CDATA sections in HTML5 are invalid so remove from test

This commit is contained in:
Hamish Friedlander 2013-02-18 17:02:11 +13:00
parent 1f4c8174e6
commit baf894d84a
2 changed files with 4 additions and 5 deletions

View File

@ -32,13 +32,12 @@ class XMLDataFormatterTest extends SapphireTest {
$this->assertEquals('Test Company', (string) $xml->Company);
$this->assertEquals($obj->ID, (int) $xml->ID);
$this->assertEquals(
'<Content><![CDATA[<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.'
. ' <![CDATA[this is some nested CDATA]]]]><![CDATA[>]]></Content>',
'<Content><![CDATA[<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.]]>'
. '</Content>',
$xml->Content->asXML()
);
$this->assertEquals(
'<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.'
. ' <![CDATA[this is some nested CDATA]]>',
'<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.',
(string)$xml->Content
);
}

View File

@ -2,4 +2,4 @@ XMLDataFormatterTest_DataObject:
test-do:
Name: Test DataObject
Company: Test Company
Content: <a href="http://mysite.com">mysite.com</a> is a link in this HTML content. <![CDATA[this is some nested CDATA]]>
Content: <a href="http://mysite.com">mysite.com</a> is a link in this HTML content.