enabling php4 for xml helper tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6839 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
DarkAngelBGE 2008-05-13 08:15:15 +00:00
parent 88a2f0936e
commit 79e1fd6ed2

View file

@ -52,7 +52,7 @@ class TestXml extends Object {
class XmlHelperTest extends UnitTestCase { class XmlHelperTest extends UnitTestCase {
function setUp() { function setUp() {
$this->Xml = new XmlHelper(); $this->Xml =& new XmlHelper();
} }
function testAddNamespace() { function testAddNamespace() {
@ -170,13 +170,13 @@ class XmlHelperTest extends UnitTestCase {
$result = $this->Xml->__composeContent($content); $result = $this->Xml->__composeContent($content);
$this->assertError(); $this->assertError();
$xml = new Xml(null, array()); $xml =& new Xml(null, array());
$result = $xml->load('<para><note>simple note</note></para>'); $result = $xml->load('<para><note>simple note</note></para>');
$result = $this->Xml->__composeContent($xml); $result = $this->Xml->__composeContent($xml);
$expected = '<para><note><![CDATA[simple note]]></note></para>'; $expected = '<para><note><![CDATA[simple note]]></note></para>';
$this->assertIdentical($result, $expected); $this->assertIdentical($result, $expected);
$xml = new TestXml('<para><note>simple note</note></para>'); $xml =& new TestXml('<para><note>simple note</note></para>');
$result = $this->Xml->__composeContent($xml); $result = $this->Xml->__composeContent($xml);
$expected = '<para><note>simple note</note></para>'; $expected = '<para><note>simple note</note></para>';
$this->assertIdentical($result, $expected); $this->assertIdentical($result, $expected);