mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 10:36:16 +00:00
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:
parent
11ba82430a
commit
ead3ff125d
1 changed files with 6 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue