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('Test Company', (string) $xml->Company);
$this->assertEquals($obj->ID, (int) $xml->ID); $this->assertEquals($obj->ID, (int) $xml->ID);
$this->assertEquals( $this->assertEquals(
'<Content><![CDATA[<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.' '<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>',
$xml->Content->asXML() $xml->Content->asXML()
); );
$this->assertEquals( $this->assertEquals(
'<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.' '<a href="http://mysite.com">mysite.com</a> is a link in this HTML content.',
. ' <![CDATA[this is some nested CDATA]]>',
(string)$xml->Content (string)$xml->Content
); );
} }

View File

@ -2,4 +2,4 @@ XMLDataFormatterTest_DataObject:
test-do: test-do:
Name: Test DataObject Name: Test DataObject
Company: Test Company 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.