]> granicus.if.org Git - php/commitdiff
Add and fix SKIPIF sections
authorGabriel Caruso <carusogabriel34@gmail.com>
Sun, 4 Feb 2018 12:41:21 +0000 (10:41 -0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 4 Feb 2018 16:26:37 +0000 (17:26 +0100)
ext/com_dotnet/tests/bug73679.phpt
ext/dom/tests/bug67949.phpt
ext/dom/tests/bug69373.phpt
ext/dom/tests/bug69679.phpt
ext/filter/tests/filter_ipv4_rfc6890.phpt
ext/gd/tests/bug75124.phpt
ext/ldap/tests/ldap_exop_refresh.phpt
ext/opcache/tests/bug73789.phpt
ext/pdo_mysql/tests/PDO_getAvaliableDrivers.phpt
ext/sqlite3/tests/sqlite3_busyTimeout.phpt
ext/xsl/tests/xsltprocessor_hasExsltSupport_not_available_extension.phpt [deleted file]

index 6f46d87d7f7d0b47f638df258eb51517a8b63ebb..b5b884553fadebba80e0a29b453218fc446853bf 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #73679 DOTNET read access violation using invalid codepage 
+Bug #73679 DOTNET read access violation using invalid codepage
 --SKIPIF--
 <?php # vim:ft=php
 if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
index 823e6e144920b54ba3018bdc9e1bc1a23517c0a2..dd27352e6c4535e29b3f177d6cc3d90cad51e3db 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #67949: DOMNodeList elements should be accessible through array notation
+--SKIPIF--
+<?php require 'skipif.inc' ?>
 --FILE--
 <?php
 
@@ -47,7 +49,7 @@ $anchor = $doc->getElementsByTagName('a')[0];
 var_dump($anchor->attributes[0]->name);
 
 echo "==DONE==\n";
-
+?>
 --EXPECTF--
 testing has_dimension
 bool(true)
@@ -84,4 +86,3 @@ NULL
 testing attribute access
 string(4) "href"
 ==DONE==
-
index d04ac03983edee1805df0bcafafd1aeb1f9ac099..ce4510082e68eb414bea7054658848ea2dcad4c0 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #69373 References to deleted XPath query results
+--SKIPIF--
+<?php require 'skipif.inc' ?>
 --FILE--
 <?php
 $doc = new DOMDocument();
index fc6db8d056ea3091877d7912c2d80d418993ca6b..e96c11a056e43e3c97b4d3a78db711efa76bc707 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #69679 (DOMDocument::loadHTML refuses to accept NULL bytes)
+--SKIPIF--
+<?php require 'skipif.inc' ?>
 --FILE--
 <?php
 $doc = new DOMDocument();
index f232f9f04dc2aada3236d252eb97986b0b8ac94f..a55bb36c30d88d133dcd8e285197344c6c69274c 100644 (file)
@@ -1,6 +1,6 @@
 --TEST--
 Bug #71745 FILTER_FLAG_NO_RES_RANGE does not cover whole 127.0.0.0/8 range
-SKIPIF--
+--SKIPIF--
 <?php if (!extension_loaded('filter')) die('skip filter extension not loaded'); ?>
 --FILE--
 <?php
index b37afc9785de14fedc40e353473591a6a61ba743..513d4521471a0d88ee47487978dd29f01eaa7d67 100644 (file)
@@ -2,7 +2,7 @@
 Bug #75124 (gdImageGrayScale() may produce colors)
 --SKIPIF--
 <?php
-if (!extension_loaded('gd')) die('gd extension not available');
+if (!extension_loaded('gd')) die('skip gd extension not available');
 if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.5', '<')) {
     die('skip only for bundled libgd or external libgd >= 2.2.5');
 }
index 613a4fbb2635221ba17d52f9cba117514a202bd9..fd843a62c6763f2276b2f991b7a215d6c7d79926 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 ldap_exop_refresh() - Test LDAP refresh extended operation
---SKIPIF--
-<?php require 'skipif.inc'; ?>
 --CREDITS--
 Emmanuel Dreyfus <manu@netbsd.org>
 --SKIPIF--
index 142d5229f9cc690f90f7465ce87d75c036563b38..c812982f207857dd48583edb6163e0deefaf87d7 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #73789 (Strange behavior of class constants in switch/case block)
+--SKIPIF--
+<?php if (!extension_loaded('ctype')) die('skip extension ctype not loaded'); ?>
 --FILE--
 <?php
 class Lexer
@@ -26,5 +28,6 @@ class Lexer
        }
 }
 var_dump((new Lexer())->getType("dot"));
+?>
 --EXPECT--
 int(2)
index 07ddca183a8883558758873ab9d88c4b4c274829..b55110d511ad63bf91e663c232aa5dfebe959479 100644 (file)
@@ -1,6 +1,8 @@
 --TEST--
 public static array PDO::getAvailableDrivers ( void );
 array pdo_drivers ( void );
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --CREDITS--
 marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
 --FILE--
index 3c7c2dc41af87dc310502260ea1d5a8a21c6e526..ba44e53ed9cc643368e11611accbbae22259e6ef 100644 (file)
@@ -2,8 +2,8 @@
 public bool SQLite3::busyTimeout ( int $msecs );
 --CREDITS--
 marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
---XFAILIF--
-<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 require_once(dirname(__FILE__) . '/new_db.inc');
diff --git a/ext/xsl/tests/xsltprocessor_hasExsltSupport_not_available_extension.phpt b/ext/xsl/tests/xsltprocessor_hasExsltSupport_not_available_extension.phpt
deleted file mode 100644 (file)
index 771b401..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-Test the basics to function XSLTProcessor::hasExsltSupport() when the xsl extension os not available.
---CREDITS--
-Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
---SKIPIF--
-<?php (!extension_loaded('xsl')) or die('skip xsl extension is available'); ?>
---FILE--
-<?php
-$proc = new XSLTProcessor();
-var_dump($proc->hasExsltSupport());
-?>
---EXPECTF--
-Fatal error: Class 'XSLTProcessor' not found in %s on line %d
\ No newline at end of file