]> granicus.if.org Git - php/commitdiff
add skipif conditions
authorAntony Dovgal <tony2001@php.net>
Wed, 21 Dec 2005 10:49:51 +0000 (10:49 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 21 Dec 2005 10:49:51 +0000 (10:49 +0000)
ext/xml/tests/bug25666.phpt
ext/xml/tests/bug26528.phpt
ext/xml/tests/bug26614.phpt
ext/xml/tests/bug26614_libxml.phpt
ext/xml/tests/bug27908.phpt
ext/xml/tests/bug30266.phpt
ext/xml/tests/bug32001.phpt
ext/xml/tests/bug35447.phpt
ext/xml/tests/xml009.phpt
ext/xml/tests/xml010.phpt

index ce67ea8ed43e9ba08b35d56b7fd54c0d810b1cfe..e162d5a2bd5860c802ea0f2f3dea2ef64f3ae7c2 100644 (file)
@@ -2,7 +2,8 @@
 Bug #25666 (XML namespaces broken in libxml-based SAX interface)
 --SKIPIF--
 <?php
-if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");}
+require_once("skipif.inc");
+if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");}
 ?>
 --FILE--
 <?php
index 2fa015a84d3c2bb8f1adfd79f0fb0f2f1ddc5df0..40a1c53c9b4c0e3bb08b00d5c6615bf8acd11c46 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Bug #26528 (HTML entities are not being decoded)
+--SKIPIF--
+<?php 
+require_once("skipif.inc");
+?>
 --FILE--
 <?php
        $sample = "<?xml version=\"1.0\"?><test attr=\"angle&lt;bracket\"/>";
index a8a91ae876eada4f5ed35f122075e8b10ad9585b..e1df1bbfde71c3ad5a61b38cc88491412910a6d3 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 Bug #26614 (CDATA sections skipped on line count)
 --SKIPIF--
-<?php if (defined("LIBXML_VERSION")) die('skip expat test'); ?>
+<?php 
+require_once("skipif.inc");
+if (defined("LIBXML_VERSION")) die('skip expat test'); 
+?>
 --FILE--
 <?php
 /*
index 645bf7e759efa02f2a359ed5d5b5f3b053e15ad5..782bdb19366b3cf1e14c8edb5f26a93454b6a580 100755 (executable)
@@ -1,7 +1,10 @@
 --TEST--
 Bug #26614 (CDATA sections skipped on line count)
 --SKIPIF--
-<?php if (!defined("LIBXML_VERSION")) die('skip libxml2 test'); ?>
+<?php 
+require_once("skipif.inc");
+if (!defined("LIBXML_VERSION")) die('skip libxml2 test'); 
+?>
 --FILE--
 <?php
 /*
index abb856137afc6787f46965f3242784cfc8d95b85..e60466fa19f545820b6647b1fe0586dbaf5260ce 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Bug #27908 (default handler not being called)
+--SKIPIF--
+<?php
+require_once("skipif.inc");
+?>
 --FILE--
 <?php
 
index ebc0a270c76ab0e6e8a96411d9700d57a22e1a7f..0a3a5ca46bfd2c57c2f7d7c233d1550409b42828 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Bug #30266 (Invalid opcode 137/1/8)
+--SKIPIF--
+<?php
+require_once("skipif.inc");
+?>
 --FILE--
 <?php
 /*
index 22f405ae53855ddd4015a7b6fc8fc03b35822876..ae624d9a81f64b22709be88308cdf5f2bb0308d1 100644 (file)
@@ -2,6 +2,7 @@
 Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect)
 --SKIPIF--
 <?php
+require_once("skipif.inc");
        if (!extension_loaded('iconv')) {
                die ("skip iconv extension not available\n");
        }
index ba8b81e46c5df0e8cfb6fdc74602f18146c43e9c..8cbb5e519323c88b29279c5ff96afae965f8a107 100644 (file)
@@ -2,6 +2,7 @@
 Bug #35447 (xml_parse_into_struct() chokes on the UTF-8 BOM)
 --SKIPIF--
 <?php
+require_once("skipif.inc");
 if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");}
 ?>
 --FILE--
index 3b64e7b8baff86379b0d24687f2db35044c3168a..84b89bb48802a78eb37a12910ee9c05d8aea9f9b 100644 (file)
@@ -2,6 +2,7 @@
 XML parser test, default namespaces
 --SKIPIF--
 <?php
+require_once("skipif.inc");
 if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");}
 ?>
 --FILE--
index 125e9c7b03e9bd78279326d67b073e49d10dbe8f..e9684421234230112873f020e915db433610083b 100644 (file)
@@ -2,6 +2,7 @@
 XML parser test, attributes
 --SKIPIF--
 <?php
+require_once("skipif.inc");
 if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");}
 ?>
 --FILE--