summaryrefslogtreecommitdiff
path: root/ext/spl/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests')
-rw-r--r--ext/spl/tests/bug44144.phpt4
-rw-r--r--ext/spl/tests/bug49263.phpt2
-rw-r--r--ext/spl/tests/bug71412.phpt4
-rw-r--r--ext/spl/tests/countable_class_basic1.phpt8
-rw-r--r--ext/spl/tests/dit_002.phpt2
5 files changed, 2 insertions, 18 deletions
diff --git a/ext/spl/tests/bug44144.phpt b/ext/spl/tests/bug44144.phpt
index 2933d2f220..7dbcf1e636 100644
--- a/ext/spl/tests/bug44144.phpt
+++ b/ext/spl/tests/bug44144.phpt
@@ -1,7 +1,5 @@
--TEST--
Bug #44144 (spl_autoload_functions() should return object instance when appropriate)
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
class Foo {
@@ -23,5 +21,3 @@ array(1) {
string(15) "nonstaticMethod"
}
}
-
-
diff --git a/ext/spl/tests/bug49263.phpt b/ext/spl/tests/bug49263.phpt
index 2075577ba8..a2e2e0b396 100644
--- a/ext/spl/tests/bug49263.phpt
+++ b/ext/spl/tests/bug49263.phpt
@@ -1,7 +1,5 @@
--TEST--
SPL: SplObjectStorage serialization references
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
$o1 = new stdClass;
diff --git a/ext/spl/tests/bug71412.phpt b/ext/spl/tests/bug71412.phpt
index 3378604af3..7db6b08469 100644
--- a/ext/spl/tests/bug71412.phpt
+++ b/ext/spl/tests/bug71412.phpt
@@ -1,11 +1,9 @@
--TEST--
Bug#71412 ArrayIterator reflection parameter info
---SKIPIF--
-<?php
-extension_loaded('SPL') || print "skip";
--FILE--
<?php
echo (new ReflectionMethod('ArrayIterator', '__construct'));
+?>
--EXPECT--
Method [ <internal:SPL, ctor> public method __construct ] {
diff --git a/ext/spl/tests/countable_class_basic1.phpt b/ext/spl/tests/countable_class_basic1.phpt
index c64aad6b6d..3108cb1818 100644
--- a/ext/spl/tests/countable_class_basic1.phpt
+++ b/ext/spl/tests/countable_class_basic1.phpt
@@ -1,13 +1,5 @@
--TEST--
SPL: Test shape of interface Countable.
---SKIPIF--
-<?php
-// Skip the test case if Standard PHP Library(spl) is not installed
- if( !extension_loaded('spl'))
- {
- die('skip spl is not installed');
- }
-?>
--FILE--
<?php
ReflectionClass::export('Countable');
diff --git a/ext/spl/tests/dit_002.phpt b/ext/spl/tests/dit_002.phpt
index a2665421e0..f4cd3ab058 100644
--- a/ext/spl/tests/dit_002.phpt
+++ b/ext/spl/tests/dit_002.phpt
@@ -1,7 +1,7 @@
--TEST--
SPL: DirectoryIterator defaults
--SKIPIF--
-<?php if (!extension_loaded("spl") || !extension_loaded('reflection') || !defined('GLOB_ERR')) print "skip"; ?>
+<?php if (!defined('GLOB_ERR')) die('skip GLOB_ERR not defined'); ?>
--FILE--
<?php