From: Gabriel Caruso Date: Sat, 3 Feb 2018 05:05:55 +0000 (-0200) Subject: Remove superfluous SKIPIF sections in Reflection tests X-Git-Tag: php-7.3.0alpha1~496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a920db8f135c1d64e7aeff12e2fd4d394454c5ab;p=php Remove superfluous SKIPIF sections in Reflection tests --- diff --git a/ext/reflection/tests/010.phpt b/ext/reflection/tests/010.phpt index 8f92feea09..8345dc35bf 100644 --- a/ext/reflection/tests/010.phpt +++ b/ext/reflection/tests/010.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionMethod::__toString() tests (overriden method) ---SKIPIF-- - --FILE-- ---EXPECTF-- +--EXPECTF-- Method [ public method func ] { @@ %s010.php 7 - 8 } diff --git a/ext/reflection/tests/011.phpt b/ext/reflection/tests/011.phpt index b39be37c90..1dcd0d040a 100644 --- a/ext/reflection/tests/011.phpt +++ b/ext/reflection/tests/011.phpt @@ -1,12 +1,10 @@ --TEST-- ReflectionExtension::getClasses() ---SKIPIF-- - --FILE-- getClasses(); echo $classes["ReflectionException"]->getName(); ?> ---EXPECT-- +--EXPECT-- ReflectionException diff --git a/ext/reflection/tests/012.phpt b/ext/reflection/tests/012.phpt index b8a2694004..d2d1c5f384 100644 --- a/ext/reflection/tests/012.phpt +++ b/ext/reflection/tests/012.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionClass::getDefaultProperties() ---SKIPIF-- - --FILE-- getDefaultProperties(); echo $props["test"]; ?> ---EXPECT-- +--EXPECT-- ok - diff --git a/ext/reflection/tests/013.phpt b/ext/reflection/tests/013.phpt index 9ecfa8b66c..f9ebc60871 100644 --- a/ext/reflection/tests/013.phpt +++ b/ext/reflection/tests/013.phpt @@ -1,13 +1,10 @@ --TEST-- ReflectionExtension::getFunctions() ---SKIPIF-- - --FILE-- getFunctions(); echo $funcs["sleep"]->getName(); ?> ---EXPECT-- +--EXPECT-- sleep - diff --git a/ext/reflection/tests/014.phpt b/ext/reflection/tests/014.phpt index 8b5955f124..071f3ad746 100644 --- a/ext/reflection/tests/014.phpt +++ b/ext/reflection/tests/014.phpt @@ -1,13 +1,10 @@ --TEST-- ReflectionExtension::getConstants() ---SKIPIF-- - --FILE-- getConstants(); var_dump($consts["CONNECTION_NORMAL"]); ?> ---EXPECT-- +--EXPECT-- int(0) - diff --git a/ext/reflection/tests/015.phpt b/ext/reflection/tests/015.phpt index b17236242a..27c1f8cb32 100644 --- a/ext/reflection/tests/015.phpt +++ b/ext/reflection/tests/015.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionExtension::getINIEntries() ---SKIPIF-- - --INI-- user_agent=php --FILE-- @@ -10,6 +8,5 @@ $ext = new ReflectionExtension("standard"); $inis = $ext->getINIEntries(); var_dump($inis["user_agent"]); ?> ---EXPECT-- +--EXPECT-- string(3) "php" - diff --git a/ext/reflection/tests/016.phpt b/ext/reflection/tests/016.phpt index d289165251..f63b751a27 100644 --- a/ext/reflection/tests/016.phpt +++ b/ext/reflection/tests/016.phpt @@ -2,7 +2,6 @@ ReflectionExtension::getDependencies() --SKIPIF-- getDependencies(); var_dump($deps); ?> ---EXPECT-- +--EXPECT-- array(1) { ["libxml"]=> string(8) "Required" diff --git a/ext/reflection/tests/017.phpt b/ext/reflection/tests/017.phpt index 1d9275d21b..322065bf20 100644 --- a/ext/reflection/tests/017.phpt +++ b/ext/reflection/tests/017.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionClass::__toString() (constants) ---SKIPIF-- - --FILE-- class Foo ] { - Methods [0] { } } - diff --git a/ext/reflection/tests/018.phpt b/ext/reflection/tests/018.phpt index fbda5d62d4..e6a94a557c 100644 --- a/ext/reflection/tests/018.phpt +++ b/ext/reflection/tests/018.phpt @@ -1,12 +1,10 @@ --TEST-- Reflection::getModifierNames ---SKIPIF-- - --FILE-- ---EXPECT-- +--EXPECT-- array(2) { [0]=> string(5) "final" diff --git a/ext/reflection/tests/019.phpt b/ext/reflection/tests/019.phpt index b6ac20c6bd..9e4093d6e3 100644 --- a/ext/reflection/tests/019.phpt +++ b/ext/reflection/tests/019.phpt @@ -1,11 +1,9 @@ --TEST-- ReflectionFunction::getExtensionName ---SKIPIF-- - --FILE-- getExtensionName()); ?> ---EXPECT-- +--EXPECT-- string(8) "standard" diff --git a/ext/reflection/tests/020.phpt b/ext/reflection/tests/020.phpt index c5b0ae5c2a..13ae6fe275 100644 --- a/ext/reflection/tests/020.phpt +++ b/ext/reflection/tests/020.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionObject::hasProperty ---SKIPIF-- - --FILE-- hasProperty("p2")); var_dump($obj->hasProperty("p3")); var_dump($obj->hasProperty("p4")); ?> ---EXPECT-- +--EXPECT-- bool(true) bool(true) bool(true) diff --git a/ext/reflection/tests/021.phpt b/ext/reflection/tests/021.phpt index 30dbb5afcb..42d11cc445 100644 --- a/ext/reflection/tests/021.phpt +++ b/ext/reflection/tests/021.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionClass::hasConstant ---SKIPIF-- - --FILE-- hasConstant("c1")); var_dump($class->hasConstant("c2")); ?> ---EXPECT-- +--EXPECT-- bool(true) bool(false) diff --git a/ext/reflection/tests/022.phpt b/ext/reflection/tests/022.phpt index 50dbd6ec74..2cfd603dad 100644 --- a/ext/reflection/tests/022.phpt +++ b/ext/reflection/tests/022.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionClass::getConstant ---SKIPIF-- - --FILE-- getConstant("c1")); var_dump($class->getConstant("c2")); ?> ---EXPECT-- +--EXPECT-- int(1) bool(false) diff --git a/ext/reflection/tests/023.phpt b/ext/reflection/tests/023.phpt index ab11365951..fe10b2531a 100644 --- a/ext/reflection/tests/023.phpt +++ b/ext/reflection/tests/023.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionClass::getDefaultProperties (filtering parent privates) ---SKIPIF-- - --FILE-- getDefaultProperties()); ?> ---EXPECT-- +--EXPECT-- array(5) { ["p4"]=> int(4) diff --git a/ext/reflection/tests/024.phpt b/ext/reflection/tests/024.phpt index a1c2c81a93..2b894d3f31 100644 --- a/ext/reflection/tests/024.phpt +++ b/ext/reflection/tests/024.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionObject::__toString (filtering privates/protected dynamic properties) ---SKIPIF-- - --FILE-- p3 = 5; $obj = new ReflectionObject($x); echo $obj; ?> ---EXPECTF-- +--EXPECTF-- Object of class [ class C1 ] { @@ %s024.php 2-6 diff --git a/ext/reflection/tests/025.phpt b/ext/reflection/tests/025.phpt index 0259d66bd3..f1e13d9240 100644 --- a/ext/reflection/tests/025.phpt +++ b/ext/reflection/tests/025.phpt @@ -1,7 +1,5 @@ --TEST-- ReflectionFunction basic tests ---SKIPIF-- - --INI-- opcache.save_comments=1 --FILE-- @@ -49,7 +47,7 @@ var_dump($func->getNumberOfRequiredParameters()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- /** hoho */ diff --git a/ext/reflection/tests/ReflectionClass_CannotClone_basic.phpt b/ext/reflection/tests/ReflectionClass_CannotClone_basic.phpt index bbe5fdbaec..0e6e249bf9 100644 --- a/ext/reflection/tests/ReflectionClass_CannotClone_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_CannotClone_basic.phpt @@ -3,14 +3,11 @@ Reflection class can not be cloned --CREDITS-- Stefan Koopmanschap TestFest PHP|Tek ---SKIPIF-- - ---FILE-- +--FILE-- --EXPECTF-- Fatal error: Uncaught Error: Trying to clone an uncloneable object of class ReflectionClass in %s:%d Stack trace: diff --git a/ext/reflection/tests/ReflectionExtension_bug66218.phpt b/ext/reflection/tests/ReflectionExtension_bug66218.phpt index e263624bad..77f3d230b3 100644 --- a/ext/reflection/tests/ReflectionExtension_bug66218.phpt +++ b/ext/reflection/tests/ReflectionExtension_bug66218.phpt @@ -2,7 +2,6 @@ ReflectionExtension::getFunctions() ##6218 zend_register_functions breaks reflection --SKIPIF-- diff --git a/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt b/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt index e32790c923..b8b969b0bc 100644 --- a/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt +++ b/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt @@ -1,10 +1,6 @@ --TEST-- Reflection::getClosureScopeClass() ---SKIPIF-- - ---FILE-- +--FILE-- getClosureScopeClass()); echo "Done!\n"; +?> --EXPECTF-- NULL object(ReflectionClass)#%d (1) { diff --git a/ext/reflection/tests/ReflectionFunction_getClosureThis.phpt b/ext/reflection/tests/ReflectionFunction_getClosureThis.phpt index 4795025798..367de45fff 100644 --- a/ext/reflection/tests/ReflectionFunction_getClosureThis.phpt +++ b/ext/reflection/tests/ReflectionFunction_getClosureThis.phpt @@ -1,15 +1,12 @@ --TEST-- Reflection::getClosureThis() ---SKIPIF-- - ---FILE-- +--FILE-- getClosureThis()); echo "Done!\n"; +?> --EXPECTF-- NULL Done! diff --git a/ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt b/ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt index df101fcd3e..7c36b8e63b 100644 --- a/ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt +++ b/ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt @@ -3,14 +3,11 @@ Reflection::isClosure --CREDITS-- Stefan Koopmanschap TestFest PHP|Tek ---SKIPIF-- - ---FILE-- +--FILE-- isClosure()); +?> --EXPECTF-- bool(true) diff --git a/ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt b/ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt index 30189cf4de..d6d2c24b85 100644 --- a/ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt +++ b/ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt @@ -3,15 +3,12 @@ ReflectionFunction::isDisabled --CREDITS-- Stefan Koopmanschap TestFest PHP|Tek ---SKIPIF-- - --INI-- disable_functions=is_file ---FILE-- +--FILE-- isDisabled()); +?> --EXPECTF-- bool(true) diff --git a/ext/reflection/tests/ReflectionMethod_getClosureThis.phpt b/ext/reflection/tests/ReflectionMethod_getClosureThis.phpt index 536f40c2e1..3a931172f1 100644 --- a/ext/reflection/tests/ReflectionMethod_getClosureThis.phpt +++ b/ext/reflection/tests/ReflectionMethod_getClosureThis.phpt @@ -1,10 +1,6 @@ --TEST-- Reflection::getClosureThis() ---SKIPIF-- - ---FILE-- +--FILE-- getClosureThis()); echo "Done!\n"; +?> --EXPECTF-- NULL object(Example)#%d (1) { diff --git a/ext/reflection/tests/bug64936.phpt b/ext/reflection/tests/bug64936.phpt index a4a66d4f48..c3e781805e 100644 --- a/ext/reflection/tests/bug64936.phpt +++ b/ext/reflection/tests/bug64936.phpt @@ -1,11 +1,9 @@ --TEST-- ReflectionMethod::getDocComment() uses left over doc comment from previous scanner run +--SKIPIF-- + --INI-- opcache.save_comments=1 ---SKIPIF-- - --FILE--