Skip to content

Commit

Permalink
more verbose skip reason in test files with not so obvious extension …
Browse files Browse the repository at this point in the history
…requirements
  • Loading branch information
odoucet committed Feb 25, 2012
1 parent 6546bee commit e613889
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Zend/tests/bug34199.phpt
Original file line number Diff line number Diff line change
@@ -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>";
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug39602.phpt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug42819.phpt
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug43918.phpt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug50174.phpt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/gc_024.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/unset_cv10.phpt
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug34657.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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--
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/tests/iterator_006.phpt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/streams/stream_get_line_nb.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
?>
Expand Down
2 changes: 1 addition & 1 deletion ext/xmlreader/tests/expand.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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";
?>
Expand Down
2 changes: 1 addition & 1 deletion sapi/cli/tests/004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ show information about function
<?php
include "skipif.inc";
if (!extension_loaded("reflection")) {
die("skip");
die("skip reflection extension required");
}
?>
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion sapi/cli/tests/005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ show information about class
<?php
include "skipif.inc";
if (!extension_loaded("reflection")) {
die("skip");
die("skip reflection extension required");
}
?>
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion sapi/cli/tests/006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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--
Expand Down
2 changes: 1 addition & 1 deletion tests/output/bug60282.phpt
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit e613889

Please sign in to comment.