mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46: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 {
|
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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue