* fixing "Nesting level too deep" in PHP 5.2

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7249 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
renan.saddam 2008-06-23 21:12:17 +00:00
parent 73eab59ada
commit bc82967dd1

View file

@ -147,11 +147,11 @@ class XmlTest extends UnitTestCase {
$xml = new Xml();
$node =& $xml->createElement('hello', 'world');
$owner =& $node->document();
$this->assertTrue($xml == $owner);
$this->assertTrue($xml === $owner);
$children =& $node->children;
$childOwner =& $children[0]->document();
$this->assertTrue($xml == $childOwner);
$this->assertTrue($xml === $childOwner);
}
/**
* testArraySingleSerialization method
@ -542,7 +542,5 @@ class XmlTest extends UnitTestCase {
$result = $xml->toString(array('cdata' => false));
$this->assertEqual($expects, $result);
}
}
?>