adding header test to XmlHelper

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6847 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
DarkAngelBGE 2008-05-13 14:50:27 +00:00
parent 11ba82430a
commit ead3ff125d

View file

@ -111,6 +111,12 @@ class XmlHelperTest extends UnitTestCase {
}
function testHeader() {
$expectedDefaultEncoding = Configure::read('App.encoding');
$attrib = array();
$result = $this->Xml->header($attrib);
$expected = '<?xml version="1.0" encoding="'.$expectedDefaultEncoding.'" ?>';
$this->assertIdentical($result, $expected);
$attrib = array(
'encoding' => 'UTF-8',
'version' => '1.1'