Skip to content

Commit

Permalink
Add failing test for #2188
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 26, 2011
1 parent 73674c6 commit 54aef72
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/Cake/Test/Case/Utility/XmlTest.php
Expand Up @@ -867,4 +867,19 @@ public function testWithModel() {
$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);
}
}

0 comments on commit 54aef72

Please sign in to comment.