]> granicus.if.org Git - php/commitdiff
Remove superfluous SKIPIF sections in SPL tests
authorGabriel Caruso <carusogabriel34@gmail.com>
Sat, 3 Feb 2018 13:34:01 +0000 (11:34 -0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 3 Feb 2018 16:50:31 +0000 (17:50 +0100)
ext/spl/tests/bug44144.phpt
ext/spl/tests/bug49263.phpt
ext/spl/tests/bug71412.phpt
ext/spl/tests/countable_class_basic1.phpt
ext/spl/tests/dit_002.phpt

index 2933d2f22079376d579cbf6acb43aa33ead24835..7dbcf1e636719237953c4e9d7b0758fb78066671 100644 (file)
@@ -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"
   }
 }
-
-
index 2075577ba885c1fccfbfcec7c041f71d9399b18e..a2e2e0b3968b0e359368c568be66ee78d12e3580 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 SPL: SplObjectStorage serialization references
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip"; ?>
 --FILE--
 <?php
 $o1 = new stdClass;
index 3378604af3564e8f8e5ea41630b2b070d9b5d9ef..7db6b084694773c7cb4ad2f8c3196c3524ca58bf 100644 (file)
@@ -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 ] {
 
index c64aad6b6d988fd33e5c49cd913437277d157946..3108cb1818b7152c8cf4fdef2b724a8e9b49cbce 100644 (file)
@@ -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');
index a2665421e0fee8b716b1d8364d9e8404d9d3cd11..f4cd3ab058a3a68b66b1c1d7d7a3795f4969a5f3 100644 (file)
@@ -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