more verbose skip reason in test files with not so obvious extension requirements

This commit is contained in:
Olivier DOUCET 2012-02-25 12:10:41 +00:00
parent 6546beecec
commit e613889d50
15 changed files with 15 additions and 15 deletions

View File

@ -1,7 +1,7 @@
--TEST--
Bug #34199 (if($obj)/if(!$obj) inconsistency because of cast handler)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
<?php if (!extension_loaded("simplexml")) print "skip SimpleXML extension required"; ?>
--FILE--
<?php
$xml = "<root></root>";

View File

@ -1,7 +1,7 @@
--TEST--
Bug #39602 (Invalid session.save_handler crashes PHP)
--SKIPIF--
<?php if (!extension_loaded("session")) die("skip"); ?>
<?php if (!extension_loaded("session")) die("skip session extension required"); ?>
--INI--
session.save_handler=qwerty
error_reporting=0

View File

@ -1,7 +1,7 @@
--TEST--
Bug #42819 (namespaces in indexes of constant arrays)
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
--FILE--
<?php
namespace foo\foo;

View File

@ -1,7 +1,7 @@
--TEST--
Bug #43918 (Segmentation fault in garbage collector)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
<?php if (!extension_loaded("simplexml")) print "skip SimpleXML extension required"; ?>
--FILE--
<?php
$xmlstr = <<<XML

View File

@ -1,7 +1,7 @@
--TEST--
Bug #50174 (Incorrectly matched docComment)
--SKIPIF--
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip"; ?>
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip SPL and reflection extensions required"; ?>
--FILE--
<?php

View File

@ -3,7 +3,7 @@ GC 024: GC and objects with non-standard handlers
--INI--
zend.enable_gc=1
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
--FILE--
<?php
$a = new ArrayObject();

View File

@ -1,7 +1,7 @@
--TEST--
unset() CV 10 (unset() of global variable in ArrayObject::offsetUnset($GLOBALS))
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
--FILE--
<?php
$a = new ArrayObject($GLOBALS);

View File

@ -8,7 +8,7 @@ if (extension_loaded("openssl")) {
when openssl loaded, tcp stream is less verbose, so some error messages are missing
so let's skip the test in this case
*/
die("skip");
die("skip OpenSSL extension required");
}
?>
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
SPL: IteratorIterator and SimpleXMlElement
--SKIPIF--
<?php if (!extension_loaded('simplexml')) print "skip"; ?>
<?php if (!extension_loaded('simplexml')) print "skip SimpleXML required"; ?>
--FILE--
<?php

View File

@ -3,7 +3,7 @@ stream_get_line() on non-blocking stream
--SKIPIF--
<?php
$sockets = @stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, 0);
if (!$sockets) die("skip");
if (!$sockets) die("skip stream_socket_pair() should work");
fclose($sockets[0]);
fclose($sockets[1]);
?>

View File

@ -2,7 +2,7 @@
XMLReader: Expand into existing DOM documet
--SKIPIF--
<?php if (!extension_loaded("xmlreader")) print "skip";
if (!extension_loaded("dom")) print "skip";
if (!extension_loaded("dom")) print "skip DOM extension required";
$reader = new XMLReader();
if (!method_exists($reader, 'expand')) print "skip";
?>

View File

@ -4,7 +4,7 @@ show information about function
<?php
include "skipif.inc";
if (!extension_loaded("reflection")) {
die("skip");
die("skip reflection extension required");
}
?>
--FILE--

View File

@ -4,7 +4,7 @@ show information about class
<?php
include "skipif.inc";
if (!extension_loaded("reflection")) {
die("skip");
die("skip reflection extension required");
}
?>
--FILE--

View File

@ -4,7 +4,7 @@ show information about extension
<?php
include "skipif.inc";
if (!extension_loaded("reflection") || !extension_loaded("session")) {
die("skip");
die("skip reflection and session extensions required");
}
?>
--INI--

View File

@ -1,7 +1,7 @@
--TEST--
Bug #60282 (Segfault when using ob_gzhandler() with open buffers)
--SKIPIF--
<?php if (!extension_loaded("zlib")) print "skip"; ?>
<?php if (!extension_loaded("zlib")) print "skip Zlib extension required"; ?>
--FILE--
<?php
ob_start();