diff options
Diffstat (limited to 'ext/xmlwriter')
33 files changed, 71 insertions, 71 deletions
diff --git a/ext/xmlwriter/tests/001.phpt b/ext/xmlwriter/tests/001.phpt index a9349d2d16..79d21e71e8 100644 --- a/ext/xmlwriter/tests/001.phpt +++ b/ext/xmlwriter/tests/001.phpt @@ -3,7 +3,7 @@ XMLWriter: libxml2 XML Writer, file buffer, flush --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/002.phpt b/ext/xmlwriter/tests/002.phpt index f2537a47ff..2e6864d776 100644 --- a/ext/xmlwriter/tests/002.phpt +++ b/ext/xmlwriter/tests/002.phpt @@ -3,7 +3,7 @@ XMLWriter: libxml2 XML Writer, membuffer, flush --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/003.phpt b/ext/xmlwriter/tests/003.phpt index 5415797864..fd2700a672 100644 --- a/ext/xmlwriter/tests/003.phpt +++ b/ext/xmlwriter/tests/003.phpt @@ -3,7 +3,7 @@ XMLWriter: libxml2 XML Writer, membuffer, flush, attribute --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/004.phpt b/ext/xmlwriter/tests/004.phpt index 2d3e858725..069dbaeec8 100644 --- a/ext/xmlwriter/tests/004.phpt +++ b/ext/xmlwriter/tests/004.phpt @@ -3,7 +3,7 @@ XMLWriter: libxml2 XML Writer, file buffer, flush --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/005-mb.phpt b/ext/xmlwriter/tests/005-mb.phpt index 63e77dc6bd..3dbbe7a417 100644 --- a/ext/xmlwriter/tests/005-mb.phpt +++ b/ext/xmlwriter/tests/005-mb.phpt @@ -1,12 +1,12 @@ --TEST-- -XMLWriter: libxml2 XML Writer, comments +XMLWriter: libxml2 XML Writer, comments --SKIPIF-- <?php -if (!extension_loaded("xmlwriter")) die("skip"); +if (!extension_loaded("xmlwriter")) die("skip"); if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ required"); ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '私はガラスを食べられます001.xml'; diff --git a/ext/xmlwriter/tests/005.phpt b/ext/xmlwriter/tests/005.phpt index ab933c6f56..1b84b3bdcf 100644 --- a/ext/xmlwriter/tests/005.phpt +++ b/ext/xmlwriter/tests/005.phpt @@ -1,12 +1,12 @@ --TEST-- -XMLWriter: libxml2 XML Writer, comments +XMLWriter: libxml2 XML Writer, comments --SKIPIF-- <?php -if (!extension_loaded("xmlwriter")) die("skip"); +if (!extension_loaded("xmlwriter")) die("skip"); if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ required"); ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/006.phpt b/ext/xmlwriter/tests/006.phpt index 48eb299418..9e032ae8ce 100644 --- a/ext/xmlwriter/tests/006.phpt +++ b/ext/xmlwriter/tests/006.phpt @@ -1,11 +1,11 @@ --TEST-- -XMLWriter: libxml2 XML Writer, startDTD/writeElementNS +XMLWriter: libxml2 XML Writer, startDTD/writeElementNS --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/007.phpt b/ext/xmlwriter/tests/007.phpt index 47965c73c4..7922bb2525 100644 --- a/ext/xmlwriter/tests/007.phpt +++ b/ext/xmlwriter/tests/007.phpt @@ -1,12 +1,12 @@ --TEST-- -XMLWriter: libxml2 XML Writer, Elements & Attributes +XMLWriter: libxml2 XML Writer, Elements & Attributes --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); if (LIBXML_VERSION < 20629) die("skip: libxml2 2.6.29+ required"); ?> --FILE-- -<?php +<?php /* $Id$ */ $xw = xmlwriter_open_memory(); diff --git a/ext/xmlwriter/tests/008.phpt b/ext/xmlwriter/tests/008.phpt index 88768b1130..d45fdea725 100644 --- a/ext/xmlwriter/tests/008.phpt +++ b/ext/xmlwriter/tests/008.phpt @@ -1,11 +1,11 @@ --TEST-- XMLWriter: libxml2 XML Writer DTD Element & Attlist --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); ?> --FILE-- -<?php +<?php /* $Id$ */ $xw = xmlwriter_open_memory(); diff --git a/ext/xmlwriter/tests/009.phpt b/ext/xmlwriter/tests/009.phpt index 002916ff10..677db522bb 100644 --- a/ext/xmlwriter/tests/009.phpt +++ b/ext/xmlwriter/tests/009.phpt @@ -1,12 +1,12 @@ --TEST-- XMLWriter: PI, Comment, CDATA --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ required"); ?> --FILE-- -<?php +<?php /* $Id$ */ /* Libxml 2.6.24 and up adds a new line after a processing instruction (PI) diff --git a/ext/xmlwriter/tests/010.phpt b/ext/xmlwriter/tests/010.phpt index 9f066a7c3e..a32a9696a6 100644 --- a/ext/xmlwriter/tests/010.phpt +++ b/ext/xmlwriter/tests/010.phpt @@ -1,8 +1,8 @@ --TEST-- xmlwriter_start/end_attribute() --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); ?> --FILE-- <?php diff --git a/ext/xmlwriter/tests/011.phpt b/ext/xmlwriter/tests/011.phpt index 5a479af8f6..957e635cb5 100644 --- a/ext/xmlwriter/tests/011.phpt +++ b/ext/xmlwriter/tests/011.phpt @@ -1,15 +1,15 @@ --TEST-- XMLWriter: libxml2 XML Writer, write_attribute_ns function ---CREDITS-- +--CREDITS-- Mauricio Vieira <mauricio [at] @mauriciovieira [dot] net> #testfest PHPSP on 2014-07-05 --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); if (LIBXML_VERSION < 20701) die("skip: libxml2 2.7.1+ required"); ?> --FILE-- -<?php +<?php /* $Id$ */ $xw = xmlwriter_open_memory(); diff --git a/ext/xmlwriter/tests/OO_001.phpt b/ext/xmlwriter/tests/OO_001.phpt index be448b9c65..5f0978d153 100644 --- a/ext/xmlwriter/tests/OO_001.phpt +++ b/ext/xmlwriter/tests/OO_001.phpt @@ -3,7 +3,7 @@ XMLWriter: libxml2 XML Writer, file buffer, flush --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/OO_002.phpt b/ext/xmlwriter/tests/OO_002.phpt index ec605f50a4..5b381ba451 100644 --- a/ext/xmlwriter/tests/OO_002.phpt +++ b/ext/xmlwriter/tests/OO_002.phpt @@ -3,7 +3,7 @@ XMLWriter: libxml2 XML Writer, membuffer, flush --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php /* $Id$ */ $xw = new XMLWriter(); diff --git a/ext/xmlwriter/tests/OO_003.phpt b/ext/xmlwriter/tests/OO_003.phpt index 7fb47910f0..5c27df0347 100644 --- a/ext/xmlwriter/tests/OO_003.phpt +++ b/ext/xmlwriter/tests/OO_003.phpt @@ -3,7 +3,7 @@ XMLWriter: libxml2 XML Writer, membuffer, flush, text, attribute --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php /* $Id$ */ $xw = new XMLWriter(); diff --git a/ext/xmlwriter/tests/OO_004.phpt b/ext/xmlwriter/tests/OO_004.phpt index 08b423ccef..4b6cad1d79 100644 --- a/ext/xmlwriter/tests/OO_004.phpt +++ b/ext/xmlwriter/tests/OO_004.phpt @@ -3,7 +3,7 @@ XMLWriter: libxml2 XML Writer, file buffer, flush --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/OO_005.phpt b/ext/xmlwriter/tests/OO_005.phpt index 2c6d2f4333..0d9be6a01f 100644 --- a/ext/xmlwriter/tests/OO_005.phpt +++ b/ext/xmlwriter/tests/OO_005.phpt @@ -1,12 +1,12 @@ --TEST-- -XMLWriter: libxml2 XML Writer, comments +XMLWriter: libxml2 XML Writer, comments --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ required"); ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/OO_006.phpt b/ext/xmlwriter/tests/OO_006.phpt index 465a725deb..7fe38d7642 100644 --- a/ext/xmlwriter/tests/OO_006.phpt +++ b/ext/xmlwriter/tests/OO_006.phpt @@ -1,11 +1,11 @@ --TEST-- -XMLWriter: libxml2 XML Writer, startDTD/writeElementNS +XMLWriter: libxml2 XML Writer, startDTD/writeElementNS --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); ?> --FILE-- -<?php +<?php /* $Id$ */ $doc_dest = '001.xml'; diff --git a/ext/xmlwriter/tests/OO_007.phpt b/ext/xmlwriter/tests/OO_007.phpt index 257a5cd90c..a8a34069fc 100644 --- a/ext/xmlwriter/tests/OO_007.phpt +++ b/ext/xmlwriter/tests/OO_007.phpt @@ -1,12 +1,12 @@ --TEST-- -XMLWriter: libxml2 XML Writer, Elements & Attributes +XMLWriter: libxml2 XML Writer, Elements & Attributes --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); if (LIBXML_VERSION < 20629) die("skip: libxml2 2.6.29+ required"); ?> --FILE-- -<?php +<?php /* $Id$ */ $xw = new XMLWriter(); diff --git a/ext/xmlwriter/tests/OO_008.phpt b/ext/xmlwriter/tests/OO_008.phpt index fe127ced2f..575bf3a752 100644 --- a/ext/xmlwriter/tests/OO_008.phpt +++ b/ext/xmlwriter/tests/OO_008.phpt @@ -1,11 +1,11 @@ --TEST-- XMLWriter: libxml2 XML Writer DTD Element & Attlist --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); ?> --FILE-- -<?php +<?php /* $Id$ */ $xw = new XMLWriter(); diff --git a/ext/xmlwriter/tests/OO_009.phpt b/ext/xmlwriter/tests/OO_009.phpt index c874f3e4ef..9dcb546a62 100644 --- a/ext/xmlwriter/tests/OO_009.phpt +++ b/ext/xmlwriter/tests/OO_009.phpt @@ -1,11 +1,11 @@ --TEST-- XMLWriter: PI, Comment, CDATA --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); ?> --FILE-- -<?php +<?php /* $Id$ */ /* Libxml 2.6.24 and up adds a new line after a processing instruction (PI) diff --git a/ext/xmlwriter/tests/OO_010.phpt b/ext/xmlwriter/tests/OO_010.phpt index 38357eca18..8fb7547823 100644 --- a/ext/xmlwriter/tests/OO_010.phpt +++ b/ext/xmlwriter/tests/OO_010.phpt @@ -1,15 +1,15 @@ --TEST-- XMLWriter: libxml2 XML Writer, writeAttributeNS method ---CREDITS-- +--CREDITS-- Mauricio Vieira <mauricio [at] @mauriciovieira [dot] net> #testfest PHPSP on 2014-07-05 --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); if (LIBXML_VERSION < 20701) die("skip: libxml2 2.7.1+ required"); ?> --FILE-- -<?php +<?php /* $Id$ */ $xw = new XMLWriter(); @@ -19,7 +19,7 @@ $xw->setIndentString(' '); $xw->startDocument('1.0', "UTF-8"); $xw->startElement('root'); $xw->startElementNS('ns1', 'child1', 'urn:ns1'); -$xw->writeAttributeNS('ns1', 'att1', 'urn:ns1', '<>"\'&'); +$xw->writeAttributeNS('ns1', 'att1', 'urn:ns1', '<>"\'&'); $xw->writeElement('chars', "special characters: <>\"'&"); $xw->endElement(); $xw->endDocument(); diff --git a/ext/xmlwriter/tests/bug39504.phpt b/ext/xmlwriter/tests/bug39504.phpt index af97f81ed5..6287194f57 100644 --- a/ext/xmlwriter/tests/bug39504.phpt +++ b/ext/xmlwriter/tests/bug39504.phpt @@ -1,8 +1,8 @@ --TEST-- Bug #39504 (xmlwriter_write_dtd_entity() creates Attlist tag, not enity) --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); ?> --FILE-- <?php diff --git a/ext/xmlwriter/tests/bug41287.phpt b/ext/xmlwriter/tests/bug41287.phpt index 72b6720f1d..5dcf96637d 100644 --- a/ext/xmlwriter/tests/bug41287.phpt +++ b/ext/xmlwriter/tests/bug41287.phpt @@ -1,8 +1,8 @@ --TEST-- Bug #41287 (Namespace functions don't allow xmlns definition to be optional) --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); ?> --FILE-- <?php diff --git a/ext/xmlwriter/tests/bug41326.phpt b/ext/xmlwriter/tests/bug41326.phpt index c69cab1795..c87af84722 100644 --- a/ext/xmlwriter/tests/bug41326.phpt +++ b/ext/xmlwriter/tests/bug41326.phpt @@ -1,8 +1,8 @@ --TEST-- Bug #41287 (Writing empty tags with Xmlwriter::WriteElement[ns]) --SKIPIF-- -<?php -if (!extension_loaded("xmlwriter")) die("skip"); +<?php +if (!extension_loaded("xmlwriter")) die("skip"); ?> --FILE-- <?php diff --git a/ext/xmlwriter/tests/bug48204.phpt b/ext/xmlwriter/tests/bug48204.phpt index 638512b274..1ce6b06fb6 100644 --- a/ext/xmlwriter/tests/bug48204.phpt +++ b/ext/xmlwriter/tests/bug48204.phpt @@ -3,7 +3,7 @@ xmlwriter_open_uri with PHP_MAXPATHLEN + 1 --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php $path = str_repeat('a', PHP_MAXPATHLEN + 1); var_dump(xmlwriter_open_uri('file:///' . $path)); ?> diff --git a/ext/xmlwriter/tests/xmlwriter_open_uri_error_001.phpt b/ext/xmlwriter/tests/xmlwriter_open_uri_error_001.phpt index fb7602b539..1e97b02f16 100644 --- a/ext/xmlwriter/tests/xmlwriter_open_uri_error_001.phpt +++ b/ext/xmlwriter/tests/xmlwriter_open_uri_error_001.phpt @@ -3,7 +3,7 @@ xmlwriter_open_uri with empty string as parameter --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php var_dump(xmlwriter_open_uri('')); ?> --CREDITS-- diff --git a/ext/xmlwriter/tests/xmlwriter_open_uri_error_002.phpt b/ext/xmlwriter/tests/xmlwriter_open_uri_error_002.phpt index 9cd33f7313..c8410604cf 100644 --- a/ext/xmlwriter/tests/xmlwriter_open_uri_error_002.phpt +++ b/ext/xmlwriter/tests/xmlwriter_open_uri_error_002.phpt @@ -3,7 +3,7 @@ xmlwriter_open_uri without parameter --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php var_dump(xmlwriter_open_uri()); ?> --CREDITS-- diff --git a/ext/xmlwriter/tests/xmlwriter_open_uri_error_003.phpt b/ext/xmlwriter/tests/xmlwriter_open_uri_error_003.phpt index 0e56d891dc..7065eed54d 100644 --- a/ext/xmlwriter/tests/xmlwriter_open_uri_error_003.phpt +++ b/ext/xmlwriter/tests/xmlwriter_open_uri_error_003.phpt @@ -3,7 +3,7 @@ xmlwriter_open_uri with non existing file --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php var_dump(xmlwriter_open_uri('foo/bar.tmp')); ?> --CREDITS-- diff --git a/ext/xmlwriter/tests/xmlwriter_open_uri_error_004.phpt b/ext/xmlwriter/tests/xmlwriter_open_uri_error_004.phpt index 6970c0eda1..8f5be51c5b 100644 --- a/ext/xmlwriter/tests/xmlwriter_open_uri_error_004.phpt +++ b/ext/xmlwriter/tests/xmlwriter_open_uri_error_004.phpt @@ -3,7 +3,7 @@ xmlwriter_open_uri with file:/// --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php var_dump(xmlwriter_open_uri('file:///')); ?> --CREDITS-- diff --git a/ext/xmlwriter/tests/xmlwriter_open_uri_error_005.phpt b/ext/xmlwriter/tests/xmlwriter_open_uri_error_005.phpt index 9d08716ccf..0df6ce06d1 100644 --- a/ext/xmlwriter/tests/xmlwriter_open_uri_error_005.phpt +++ b/ext/xmlwriter/tests/xmlwriter_open_uri_error_005.phpt @@ -3,7 +3,7 @@ xmlwriter_open_uri with file://localhost/ --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php var_dump(xmlwriter_open_uri('file://localhost/')); ?> --CREDITS-- diff --git a/ext/xmlwriter/tests/xmlwriter_set_indent_string_basic_001.phpt b/ext/xmlwriter/tests/xmlwriter_set_indent_string_basic_001.phpt index 8c3e7d9257..9db8b55346 100644 --- a/ext/xmlwriter/tests/xmlwriter_set_indent_string_basic_001.phpt +++ b/ext/xmlwriter/tests/xmlwriter_set_indent_string_basic_001.phpt @@ -3,7 +3,7 @@ xmlwriter_set_indent_string passing xmlwriter resource --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php $temp_filename = dirname(__FILE__)."/xmlwriter_set_indent_string.tmp"; $fp = fopen($temp_filename, "w"); fwrite ($fp, "Hi"); diff --git a/ext/xmlwriter/tests/xmlwriter_set_indent_string_error_001.phpt b/ext/xmlwriter/tests/xmlwriter_set_indent_string_error_001.phpt index 5bb9ef8b65..c10ed7bf66 100644 --- a/ext/xmlwriter/tests/xmlwriter_set_indent_string_error_001.phpt +++ b/ext/xmlwriter/tests/xmlwriter_set_indent_string_error_001.phpt @@ -3,7 +3,7 @@ xmlwriter_set_indent_string with missing param(s) --SKIPIF-- <?php if (!extension_loaded("xmlwriter")) print "skip"; ?> --FILE-- -<?php +<?php $temp_filename = dirname(__FILE__)."/xmlwriter_set_indent_string_error.tmp"; $fp = fopen($temp_filename, "w"); fwrite ($fp, "Hi"); |