mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 02:26:17 +00:00
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:
parent
88a2f0936e
commit
79e1fd6ed2
1 changed files with 3 additions and 3 deletions
|
@ -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('<para><note>simple note</note></para>');
|
||||
$result = $this->Xml->__composeContent($xml);
|
||||
$expected = '<para><note><![CDATA[simple note]]></note></para>';
|
||||
$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);
|
||||
$expected = '<para><note>simple note</note></para>';
|
||||
$this->assertIdentical($result, $expected);
|
||||
|
|
Loading…
Add table
Reference in a new issue