| 1 |
lars |
1 |
--TEST--
|
|
|
2 |
XML_Util tests for Bug #4950 "Incorrect CDATA serializing"
|
|
|
3 |
--CREDITS--
|
|
|
4 |
Chuck Burgess <ashnazg@php.net>
|
|
|
5 |
# created for v1.2.0a1 2008-05-04
|
|
|
6 |
--FILE--
|
|
|
7 |
<?php
|
|
|
8 |
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
|
|
|
9 |
echo '=====XML_Util tests for Bug #4950 "Incorrect CDATA serializing"=====' . PHP_EOL . PHP_EOL;
|
|
|
10 |
|
|
|
11 |
echo "TEST: test case provided in bug report" . PHP_EOL;
|
|
|
12 |
echo XML_Util::createTag("test", array(), "Content ]]></test> here!",
|
|
|
13 |
null, XML_UTIL_CDATA_SECTION) . PHP_EOL;
|
|
|
14 |
|
|
|
15 |
?>
|
|
|
16 |
--EXPECT--
|
|
|
17 |
=====XML_Util tests for Bug #4950 "Incorrect CDATA serializing"=====
|
|
|
18 |
|
|
|
19 |
TEST: test case provided in bug report
|
|
|
20 |
<test><![CDATA[Content ]]]]><![CDATA[></test> here!]]></test>
|
|
|
21 |
|