]> granicus.if.org Git - php/commitdiff
Remove superfluous SKIPIF sections in Zend tests
authorGabriel Caruso <carusogabriel34@gmail.com>
Sat, 3 Feb 2018 14:03:29 +0000 (12:03 -0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 3 Feb 2018 15:16:49 +0000 (16:16 +0100)
12 files changed:
Zend/tests/bug36214.phpt
Zend/tests/bug42819.phpt
Zend/tests/bug45805.phpt
Zend/tests/bug50174.phpt
Zend/tests/closure_042.phpt
Zend/tests/gc_024.phpt
Zend/tests/ns_035.phpt
Zend/tests/ns_036.phpt
Zend/tests/ns_054.phpt
Zend/tests/ns_056.phpt
Zend/tests/return_types/reflection001.phpt
Zend/tests/unset_cv10.phpt

index 630773713a134f12e907f04bfa84ede2ba7aeba3..b2e3e5dd217a883c8a9b186f64b91abe6fbfe8c4 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #36214 (__get method works properly only when conditional operator is used)
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
 --FILE--
 <?php
 class context {
index 4630dc29b5fdef06ed1e36d335082aa57399806e..d0b5c0b2ee669a2485916711f524df413ec4783e 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #42819 (namespaces in indexes of constant arrays)
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
 --FILE--
 <?php
 namespace foo\foo;
@@ -303,4 +301,4 @@ Fatal error: Uncaught Error: Undefined constant 'foo\foo\unknown' in %sbug42819.
 Stack trace:
 #0 %s(%d): foo\oops()
 #1 {main}
-  thrown in %sbug42819.php on line %d
\ No newline at end of file
+  thrown in %sbug42819.php on line %d
index 1bb03e917ef1900bf1abcb77837e56e6b41ce7dd..edeca7456ca7a9ef7cc598e8bf846b6b65735e13 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #45805 (Crash on throwing exception from error handler)
---SKIPIF--
-<?php extension_loaded('reflection') or die('skip'); ?>
 --FILE--
 <?php
 class PHPUnit_Util_ErrorHandler
@@ -33,7 +31,7 @@ class B {
 set_error_handler(
   array('PHPUnit_Util_ErrorHandler', 'handleError'), E_ALL | E_STRICT
 );
-            
+
 $o = new B;
 $o->bar();
 ?>
index ac2ad2cb8d7b12c8240c8d4c06ef4c02f21702ed..6ed5733b67e79af478491132dde4026dfdcfc669 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #50174 (Incorrectly matched docComment)
---SKIPIF--
-<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip SPL and reflection extensions required"; ?>
 --FILE--
 <?php
 
index 8969765bcd9c7ff518e0b729d49b2f167919d07e..dc849a528211bec9d5c67209dc43d4f6f6b4a48a 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Closure 042: Binding an instance to a non-scoped non-static closures gives it a dummy scope
---SKIPIF--
-<?php if(!extension_loaded("reflection")) print "skip no reflection"; ?>
 --FILE--
 <?php
 
@@ -18,7 +16,7 @@ $rm = new ReflectionFunction($d);
 var_dump($rm->getClosureScopeClass()->name); //dummy sope is Closure
 
 echo "Done.\n";
-
+?>
 --EXPECTF--
 object(stdClass)#%d (0) {
 }
index ca78da63d3b7f51308baa3b581493985efd258e4..3f6290241aea2a74c6b4865d966a6063cf53776d 100644 (file)
@@ -2,8 +2,6 @@
 GC 024: GC and objects with non-standard handlers
 --INI--
 zend.enable_gc=1
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
 --FILE--
 <?php
 $a = new ArrayObject();
index fcc771a74e7fef85e94e542b55ebc429b6129173..7fdf7d83f328d45c8b10e546de461ced2d773167 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 035: Name ambiguity in compile-time constant reference (php name)
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
 --FILE--
 <?php
 namespace A;
index 245cf7d5b5319f02aa73aeffb6ab71505552df2b..0458a38df08260fcea9fda2f9f52a2b26c955818 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 036: Name ambiguity in compile-time constant reference (ns name)
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
 --FILE--
 <?php
 namespace A;
index 54ab9586112127e713b2f253dbd19a63c046877f..c6dd2553f83574f00f8d6a3177f9ac65edf347cd 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 054: namespace and interfaces
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
 --FILE--
 <?php
 namespace test\ns1;
index 2390608d4ee078c350ac562a66899a0909c353e9..b61609793d0ea01d75f3d04b122b1440063f195e 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 056: type-hint compatibility in namespaces
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
 --FILE--
 <?php
 namespace test\ns1;
index c95f7292b569d31b04cf7fac6933d2dda89409d1..c2ff253cdbfedbabd02bc859a9b7e0801ebbfec3 100644 (file)
@@ -1,9 +1,5 @@
 --TEST--
 Return type and Reflection::export()
---SKIPIF--
-<?php
-if (!extension_loaded('reflection')) print 'skip';
-?>
 --FILE--
 <?php
 
@@ -14,6 +10,7 @@ class A {
 }
 
 ReflectionClass::export("A");
+?>
 --EXPECTF--
 Class [ <user> class A ] {
   @@ %sreflection001.php 3-7
@@ -41,4 +38,3 @@ Class [ <user> class A ] {
     }
   }
 }
-
index 3b943d8b6ab8171ec6dcf5adadb1eb73595e8287..335463b0ca8a9fd92c90cc2f781f1bfce695347e 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 unset() CV 10 (unset() of global variable in ArrayObject::offsetUnset($GLOBALS))
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
 --FILE--
 <?php
 $a = new ArrayObject($GLOBALS);