diff options
author | Pierre Joye <pajoye@php.net> | 2006-07-19 18:50:51 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2006-07-19 18:50:51 +0000 |
commit | 92b6f24241c78909f6774c28ecdbdfddc21a5a47 (patch) | |
tree | ee3cc67fd295fbde5e5bd6bbdc7974fdeef58325 /ext/xmlwriter | |
parent | 221ac1b9e5f0c106651a89b17f57be6d58017c1b (diff) | |
download | php-git-92b6f24241c78909f6774c28ecdbdfddc21a5a47.tar.gz |
- fix tests for PI with libxml 2.6.24+, a new line is now added
Diffstat (limited to 'ext/xmlwriter')
-rw-r--r-- | ext/xmlwriter/tests/009.phpt | 8 | ||||
-rw-r--r-- | ext/xmlwriter/tests/OO_009.phpt | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/ext/xmlwriter/tests/009.phpt b/ext/xmlwriter/tests/009.phpt index 9c00fe7b0e..002916ff10 100644 --- a/ext/xmlwriter/tests/009.phpt +++ b/ext/xmlwriter/tests/009.phpt @@ -8,7 +8,9 @@ if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ requi --FILE-- <?php /* $Id$ */ - +/* +Libxml 2.6.24 and up adds a new line after a processing instruction (PI) +*/ $xw = xmlwriter_open_memory(); xmlwriter_set_indent($xw, TRUE); xmlwriter_start_document($xw, NULL, "UTF-8"); @@ -32,12 +34,12 @@ xmlwriter_end_document($xw); $output = xmlwriter_flush($xw, true); print $output; ?> ---EXPECT-- +--EXPECTF-- <?xml version="1.0" encoding="UTF-8"?> <root id="elem1"> <elem1 attr1="first"> <!--start PI--> - <pi><?php echo "hello world"; ?></pi> + <pi><?php echo "hello world"; ?>%w</pi> <cdata><![CDATA[<>&"]]></cdata> </elem1> </root> diff --git a/ext/xmlwriter/tests/OO_009.phpt b/ext/xmlwriter/tests/OO_009.phpt index aa3e95596f..c874f3e4ef 100644 --- a/ext/xmlwriter/tests/OO_009.phpt +++ b/ext/xmlwriter/tests/OO_009.phpt @@ -7,7 +7,9 @@ if (!extension_loaded("xmlwriter")) die("skip"); --FILE-- <?php /* $Id$ */ - +/* +Libxml 2.6.24 and up adds a new line after a processing instruction (PI) +*/ $xw = new XMLWriter(); $xw->openMemory(); $xw->setIndent(TRUE); @@ -32,12 +34,12 @@ $xw->endDocument(); $output = $xw->flush(true); print $output; ?> ---EXPECT-- +--EXPECTF-- <?xml version="1.0" encoding="UTF-8"?> <root id="elem1"> <elem1 attr1="first"> <!--start PI--> - <pi><?php echo "hello world"; ?></pi> + <pi><?php echo "hello world"; ?>%w</pi> <cdata><![CDATA[<>&"]]></cdata> </elem1> </root> |