Skip to content

Commit

Permalink
Added test for XML Helper serialization. Refs #284
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant committed Mar 29, 2010
1 parent 17852ab commit 84ad35c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cake/tests/cases/libs/view/helpers/xml.test.php
Expand Up @@ -218,6 +218,13 @@ function testSerialize() {
$result = $this->Xml->serialize($data);
$expected = '<pages id="2" url="http://www.url.com/rb/153/?id=bbbb&amp;t=access" />';
$this->assertIdentical($result, $expected);

$test = array(
'Test' => array('test' => true)
);
$expected = '<test test="1" />';
$result = $this->Xml->serialize($test);
$this->assertidentical($expected, $result);
}

/**
Expand Down

0 comments on commit 84ad35c

Please sign in to comment.