Browse Source

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

pull/12/head
Olivier DOUCET 14 years ago
parent
commit
ce535f1819
  1. 2
      Zend/tests/bug34199.phpt
  2. 2
      Zend/tests/bug39602.phpt
  3. 2
      Zend/tests/bug42819.phpt
  4. 2
      Zend/tests/bug43918.phpt
  5. 2
      Zend/tests/bug50174.phpt
  6. 2
      Zend/tests/gc_024.phpt
  7. 2
      Zend/tests/unset_cv10.phpt
  8. 2
      ext/soap/tests/bugs/bug34657.phpt
  9. 2
      ext/spl/tests/iterator_006.phpt
  10. 2
      ext/standard/tests/streams/stream_get_line_nb.phpt
  11. 2
      ext/xmlreader/tests/expand.phpt
  12. 2
      sapi/cli/tests/004.phpt
  13. 2
      sapi/cli/tests/005.phpt
  14. 2
      sapi/cli/tests/006.phpt

2
Zend/tests/bug34199.phpt

@ -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>";

2
Zend/tests/bug39602.phpt

@ -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

2
Zend/tests/bug42819.phpt

@ -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;

2
Zend/tests/bug43918.phpt

@ -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

2
Zend/tests/bug50174.phpt

@ -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

2
Zend/tests/gc_024.phpt

@ -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();

2
Zend/tests/unset_cv10.phpt

@ -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);

2
ext/soap/tests/bugs/bug34657.phpt

@ -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--

2
ext/spl/tests/iterator_006.phpt

@ -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

2
ext/standard/tests/streams/stream_get_line_nb.phpt

@ -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]);
?>

2
ext/xmlreader/tests/expand.phpt

@ -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";
?>

2
sapi/cli/tests/004.phpt

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

2
sapi/cli/tests/005.phpt

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

2
sapi/cli/tests/006.phpt

@ -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--

Loading…
Cancel
Save