diff --git a/cake/tests/cases/libs/view/helpers/xml.test.php b/cake/tests/cases/libs/view/helpers/xml.test.php index 7830a013d..537c7ad5f 100644 --- a/cake/tests/cases/libs/view/helpers/xml.test.php +++ b/cake/tests/cases/libs/view/helpers/xml.test.php @@ -52,7 +52,7 @@ class TestXml extends Object { class XmlHelperTest extends UnitTestCase { function setUp() { - $this->Xml = new XmlHelper(); + $this->Xml =& new XmlHelper(); } function testAddNamespace() { @@ -170,13 +170,13 @@ class XmlHelperTest extends UnitTestCase { $result = $this->Xml->__composeContent($content); $this->assertError(); - $xml = new Xml(null, array()); + $xml =& new Xml(null, array()); $result = $xml->load('simple note'); $result = $this->Xml->__composeContent($xml); $expected = ''; $this->assertIdentical($result, $expected); - $xml = new TestXml('simple note'); + $xml =& new TestXml('simple note'); $result = $this->Xml->__composeContent($xml); $expected = 'simple note'; $this->assertIdentical($result, $expected);