diff options
Diffstat (limited to 'ext/reflection/tests')
12 files changed, 24 insertions, 16 deletions
diff --git a/ext/reflection/tests/ReflectionClass_constructor_002.phpt b/ext/reflection/tests/ReflectionClass_constructor_002.phpt index 7df620eaaa..adb3784347 100644 --- a/ext/reflection/tests/ReflectionClass_constructor_002.phpt +++ b/ext/reflection/tests/ReflectionClass_constructor_002.phpt @@ -45,8 +45,10 @@ try { } ?> ---EXPECT-- +--EXPECTF-- ReflectionClass::__construct() expects exactly 1 argument, 0 given + +Deprecated: ReflectionClass::__construct(): Passing null to parameter #1 ($objectOrClass) of type object|string is deprecated in %s on line %d Class "" does not exist Class "1" does not exist Class "1" does not exist diff --git a/ext/reflection/tests/ReflectionClass_getConstant_error.phpt b/ext/reflection/tests/ReflectionClass_getConstant_error.phpt index ca9bc0ce2d..d143006af9 100644 --- a/ext/reflection/tests/ReflectionClass_getConstant_error.phpt +++ b/ext/reflection/tests/ReflectionClass_getConstant_error.phpt @@ -8,7 +8,6 @@ class C { $rc = new ReflectionClass("C"); echo "Check invalid params:\n"; -var_dump($rc->getConstant(null)); var_dump($rc->getConstant(1)); var_dump($rc->getConstant(1.5)); var_dump($rc->getConstant(true)); @@ -18,4 +17,3 @@ Check invalid params: bool(false) bool(false) bool(false) -bool(false) diff --git a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt index 8271822884..9278b47875 100644 --- a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt @@ -54,10 +54,12 @@ try { ?> ---EXPECT-- +--EXPECTF-- Check invalid params: ReflectionClass::getMethod() expects exactly 1 argument, 0 given ReflectionClass::getMethod() expects exactly 1 argument, 2 given + +Deprecated: ReflectionClass::getMethod(): Passing null to parameter #1 ($name) of type string is deprecated in %s on line %d Method C::() does not exist Method C::1() does not exist Method C::1.5() does not exist diff --git a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt index 80ef77c8a3..c2f8419a1e 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt @@ -52,10 +52,12 @@ try { echo $e->getMessage() . "\n"; } ?> ---EXPECT-- +--EXPECTF-- Check invalid params: ReflectionClass::getProperty() expects exactly 1 argument, 0 given ReflectionClass::getProperty() expects exactly 1 argument, 2 given + +Deprecated: ReflectionClass::getProperty(): Passing null to parameter #1 ($name) of type string is deprecated in %s on line %d Property C::$ does not exist Property C::$1 does not exist Property C::$1.5 does not exist diff --git a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt index 4a5a5929d5..2b6fda0590 100644 --- a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt @@ -38,9 +38,11 @@ try { ?> ---EXPECT-- +--EXPECTF-- ReflectionClass::getStaticPropertyValue() expects at most 2 arguments, 3 given ReflectionClass::getStaticPropertyValue() expects at least 1 argument, 0 given + +Deprecated: ReflectionClass::getStaticPropertyValue(): Passing null to parameter #1 ($name) of type string is deprecated in %s on line %d Property C::$ does not exist string(3) "def" ReflectionClass::getStaticPropertyValue(): Argument #1 ($name) must be of type string, array given diff --git a/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt b/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt index 5dcc7df173..4e4c206ac2 100644 --- a/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt +++ b/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt @@ -11,7 +11,6 @@ class C { $rc = new ReflectionClass("C"); echo "Check invalid params:\n"; -var_dump($rc->hasConstant(null)); var_dump($rc->hasConstant(1)); var_dump($rc->hasConstant(1.5)); var_dump($rc->hasConstant(true)); @@ -21,4 +20,3 @@ Check invalid params: bool(false) bool(false) bool(false) -bool(false) diff --git a/ext/reflection/tests/ReflectionClass_hasMethod_002.phpt b/ext/reflection/tests/ReflectionClass_hasMethod_002.phpt index 2bbc84551e..5e175fbb7e 100644 --- a/ext/reflection/tests/ReflectionClass_hasMethod_002.phpt +++ b/ext/reflection/tests/ReflectionClass_hasMethod_002.phpt @@ -11,7 +11,6 @@ class C { $rc = new ReflectionClass("C"); echo "Check invalid params:\n"; -var_dump($rc->hasMethod(null)); var_dump($rc->hasMethod(1)); var_dump($rc->hasMethod(1.5)); var_dump($rc->hasMethod(true)); @@ -21,4 +20,3 @@ Check invalid params: bool(false) bool(false) bool(false) -bool(false) diff --git a/ext/reflection/tests/ReflectionClass_hasProperty_002.phpt b/ext/reflection/tests/ReflectionClass_hasProperty_002.phpt index 607fead65c..14b4520e07 100644 --- a/ext/reflection/tests/ReflectionClass_hasProperty_002.phpt +++ b/ext/reflection/tests/ReflectionClass_hasProperty_002.phpt @@ -11,7 +11,6 @@ class C { $rc = new ReflectionClass("C"); echo "Check invalid params:\n"; -var_dump($rc->hasProperty(null)); var_dump($rc->hasProperty(1)); var_dump($rc->hasProperty(1.5)); var_dump($rc->hasProperty(true)); @@ -21,4 +20,3 @@ Check invalid params: bool(false) bool(false) bool(false) -bool(false) diff --git a/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt b/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt index 5fb158cb8d..7af12f07b7 100644 --- a/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt +++ b/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt @@ -65,7 +65,7 @@ try { echo $e->getMessage() . "\n"; } ?> ---EXPECT-- +--EXPECTF-- Does A implement A? - Using object argument: A is not an interface - Using string argument: A is not an interface @@ -146,6 +146,8 @@ Does I2 implement I2? Test bad arguments: ReflectionClass::implementsInterface() expects exactly 1 argument, 0 given ReflectionClass::implementsInterface() expects exactly 1 argument, 2 given + +Deprecated: ReflectionClass::implementsInterface(): Passing null to parameter #1 ($interface) of type ReflectionClass|string is deprecated in %s on line %d Interface "" does not exist Interface "ThisClassDoesNotExist" does not exist Interface "2" does not exist diff --git a/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt b/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt index 51fc52b8ee..db3961b3e6 100644 --- a/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt +++ b/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt @@ -35,10 +35,12 @@ try { echo $e->getMessage() . "\n"; } ?> ---EXPECT-- +--EXPECTF-- Test bad arguments: ReflectionClass::isSubclassOf() expects exactly 1 argument, 0 given ReflectionClass::isSubclassOf() expects exactly 1 argument, 2 given + +Deprecated: ReflectionClass::isSubclassOf(): Passing null to parameter #1 ($class) of type ReflectionClass|string is deprecated in %s on line %d Class "" does not exist Class "ThisClassDoesNotExist" does not exist Class "2" does not exist diff --git a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt index 7bd2b1eecd..82de2ce0c2 100644 --- a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt +++ b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt @@ -43,10 +43,12 @@ try { ?> ---EXPECT-- +--EXPECTF-- ReflectionClass::setStaticPropertyValue() expects exactly 2 arguments, 3 given ReflectionClass::setStaticPropertyValue() expects exactly 2 arguments, 0 given ReflectionClass::setStaticPropertyValue() expects exactly 2 arguments, 1 given + +Deprecated: ReflectionClass::setStaticPropertyValue(): Passing null to parameter #1 ($name) of type string is deprecated in %s on line %d Class C does not have a property named Class C does not have a property named 1.5 ReflectionClass::setStaticPropertyValue(): Argument #1 ($name) must be of type string, array given diff --git a/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt b/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt index ceedc7d4f0..03a4cfcc22 100644 --- a/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt +++ b/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt @@ -35,10 +35,12 @@ try { echo $e->getMessage() . "\n"; } ?> ---EXPECT-- +--EXPECTF-- Test bad arguments: ReflectionClass::isSubclassOf() expects exactly 1 argument, 0 given ReflectionClass::isSubclassOf() expects exactly 1 argument, 2 given + +Deprecated: ReflectionClass::isSubclassOf(): Passing null to parameter #1 ($class) of type ReflectionClass|string is deprecated in %s on line %d Class "" does not exist Class "ThisClassDoesNotExist" does not exist Class "2" does not exist |