pajoye Wed Dec 21 13:34:44 2005 EDT
Modified files:
/php-src/ext/xmlreader/tests 007.phpt 011.phpt
Log:
- skip NG if no SCHEMAS support
- skip readInner/OuterXml if not defined
http://cvs.php.net/viewcvs.cgi/php-src/ext/xmlreader/tests/007.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/xmlreader/tests/007.phpt
diff -u php-src/ext/xmlreader/tests/007.phpt:1.1
php-src/ext/xmlreader/tests/007.phpt:1.2
--- php-src/ext/xmlreader/tests/007.phpt:1.1 Wed Dec 21 03:46:02 2005
+++ php-src/ext/xmlreader/tests/007.phpt Wed Dec 21 13:34:44 2005
@@ -1,10 +1,13 @@
--TEST--
XMLReader: libxml2 XML Reader, setRelaxNGSchema
--SKIPIF--
-<?php if (!extension_loaded("xmlreader")) print "skip"; ?>
+<?php if (!extension_loaded("xmlreader")) print "skip";
+$reader = new XMLReader();
+if (!method_exists($reader, 'setRelaxNGSchema')) print "skip";
+?>
--FILE--
<?php
-/* $Id: 007.phpt,v 1.1 2005/12/21 03:46:02 pajoye Exp $ */
+/* $Id: 007.phpt,v 1.2 2005/12/21 13:34:44 pajoye Exp $ */
$xmlstring = '<TEI.2>hello</TEI.2>';
$relaxngfile = dirname(__FILE__) . '/relaxNG.rng';
http://cvs.php.net/viewcvs.cgi/php-src/ext/xmlreader/tests/011.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/xmlreader/tests/011.phpt
diff -u php-src/ext/xmlreader/tests/011.phpt:1.1
php-src/ext/xmlreader/tests/011.phpt:1.2
--- php-src/ext/xmlreader/tests/011.phpt:1.1 Wed Dec 21 13:25:02 2005
+++ php-src/ext/xmlreader/tests/011.phpt Wed Dec 21 13:34:44 2005
@@ -1,10 +1,13 @@
--TEST--
XMLReader: libxml2 XML Reader, string data
--SKIPIF--
-<?php if (!extension_loaded("xmlreader")) print "skip"; ?>
+<?php if (!extension_loaded("xmlreader")) print "skip";
+$reader = new XMLReader();
+if (!method_exists($reader, 'readInnerXml')) print "skip";
+?>
--FILE--
<?php
-/* $Id: 011.phpt,v 1.1 2005/12/21 13:25:02 pajoye Exp $ */
+/* $Id: 011.phpt,v 1.2 2005/12/21 13:34:44 pajoye Exp $ */
$xmlstring = '<?xml version="1.0" encoding="UTF-8"?>
<books><book>test</book></books>';
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php