Permalink
Browse files

Add failing test for #2188

  • Loading branch information...
markstory committed Nov 26, 2011
1 parent 73674c6 commit 54aef7216f8daca839df4ad6a530bb4a76b3b937
Showing with 15 additions and 0 deletions.
  1. +15 −0 lib/Cake/Test/Case/Utility/XmlTest.php
@@ -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.