mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Proving correct especial char encoding. Closes #5335
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7528 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6bdc60731f
commit
db5235261e
1 changed files with 7 additions and 0 deletions
|
@ -195,6 +195,13 @@ class XmlHelperTest extends CakeTestCase {
|
||||||
$result = $this->Xml->serialize($data, array('format' => 'tags'));
|
$result = $this->Xml->serialize($data, array('format' => 'tags'));
|
||||||
$expected = '<service_day><service_time><service_time_price><dollar>1</dollar><cents>2</cents></service_time_price></service_time></service_day>';
|
$expected = '<service_day><service_time><service_time_price><dollar>1</dollar><cents>2</cents></service_time_price></service_time></service_day>';
|
||||||
$this->assertIdentical($result, $expected);
|
$this->assertIdentical($result, $expected);
|
||||||
|
|
||||||
|
$data = array(
|
||||||
|
'Pages' => array('id' => 2, 'url' => 'http://www.url.com/rb/153/?id=bbbb&t=access')
|
||||||
|
);
|
||||||
|
$result = $this->Xml->serialize($data);
|
||||||
|
$expected = '<pages id="2" url="http://www.url.com/rb/153/?id=bbbb&t=access" />';
|
||||||
|
$this->assertIdentical($result, $expected);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* testHeader method
|
* testHeader method
|
||||||
|
|
Loading…
Add table
Reference in a new issue