From ead3ff125d7ff91a5678d803b8dfd8389d99f7e4 Mon Sep 17 00:00:00 2001 From: DarkAngelBGE Date: Tue, 13 May 2008 14:50:27 +0000 Subject: [PATCH] adding header test to XmlHelper git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6847 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/view/helpers/xml.test.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cake/tests/cases/libs/view/helpers/xml.test.php b/cake/tests/cases/libs/view/helpers/xml.test.php index 16d3e9454..260889770 100644 --- a/cake/tests/cases/libs/view/helpers/xml.test.php +++ b/cake/tests/cases/libs/view/helpers/xml.test.php @@ -111,6 +111,12 @@ class XmlHelperTest extends UnitTestCase { } function testHeader() { + $expectedDefaultEncoding = Configure::read('App.encoding'); + $attrib = array(); + $result = $this->Xml->header($attrib); + $expected = ''; + $this->assertIdentical($result, $expected); + $attrib = array( 'encoding' => 'UTF-8', 'version' => '1.1'