mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Add failing test for #2188
This commit is contained in:
parent
73674c648c
commit
54aef7216f
1 changed files with 15 additions and 0 deletions
|
@ -867,4 +867,19 @@ class XmlTest extends CakeTestCase {
|
|||
$this->assertEquals(str_replace(array("\r", "\n"), '', $obj->asXML()), $expected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test ampersand in text elements.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testAmpInText() {
|
||||
$data = array(
|
||||
'outer' => array(
|
||||
'inner' => array('name' => 'mark & mark')
|
||||
)
|
||||
);
|
||||
$obj = Xml::build($data);
|
||||
$result = $obj->asXml();
|
||||
$this->assertContains('mark & mark', $result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue