mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Another batch of fixed tests
This commit is contained in:
parent
17e1a396c1
commit
c075476810
3 changed files with 18 additions and 12 deletions
|
@ -121,29 +121,35 @@ echo "Done";
|
||||||
*** Testing array_map() : object functionality ***
|
*** Testing array_map() : object functionality ***
|
||||||
-- simple class with public variable and method --
|
-- simple class with public variable and method --
|
||||||
|
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Strict Standards: array_map() expects parameter 1 to be a valid callback, non-static method SimpleClass::square() should not be called statically in %s on line %d
|
||||||
|
|
||||||
|
Warning: array_map() expects parameter 2 to be a valid callback, second array member is not a valid method in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
|
|
||||||
-- simple class with private variable and method --
|
-- simple class with private variable and method --
|
||||||
|
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Warning: array_map() expects parameter 1 to be a valid callback, cannot access private method SimpleClassPri::add() in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
|
|
||||||
-- simple class with protected variable and method --
|
-- simple class with protected variable and method --
|
||||||
|
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Warning: array_map() expects parameter 1 to be a valid callback, cannot access protected method SimpleClassPro::mul() in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
|
|
||||||
-- class without members --
|
-- class without members --
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Warning: array_map() expects parameter 1 to be a valid callback, array must have exactly two members in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
|
|
||||||
-- abstract class --
|
-- abstract class --
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Strict Standards: array_map() expects parameter 1 to be a valid callback, non-static method ChildClass::emptyFunction() should not be called statically in %s on line %d
|
||||||
|
|
||||||
|
Warning: array_map() expects parameter 2 to be a valid callback, second array member is not a valid method in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
|
|
||||||
-- class with final method --
|
-- class with final method --
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Strict Standards: array_map() expects parameter 1 to be a valid callback, non-static method FinalClass::finalMethod() should not be called statically in %s on line %d
|
||||||
|
|
||||||
|
Warning: array_map() expects parameter 2 to be a valid callback, second array member is not a valid method in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
|
|
||||||
-- class with static members --
|
-- class with static members --
|
||||||
|
@ -154,10 +160,10 @@ array(2) {
|
||||||
int(4)
|
int(4)
|
||||||
}
|
}
|
||||||
|
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Warning: array_map() expects parameter 1 to be a valid callback, cannot access private method StaticClass::cube() in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
|
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Warning: array_map() expects parameter 1 to be a valid callback, cannot access protected method StaticClass::retVal() in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
-- class implementing an interface --
|
-- class implementing an interface --
|
||||||
array(2) {
|
array(2) {
|
||||||
|
|
|
@ -37,10 +37,10 @@ echo "Done";
|
||||||
*** Testing array_map() : with non-existent class and method ***
|
*** Testing array_map() : with non-existent class and method ***
|
||||||
-- with non-existent class --
|
-- with non-existent class --
|
||||||
|
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Warning: array_map() expects parameter 1 to be a valid callback, first array member is not a valid class name in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
-- with existent class and non-existent method --
|
-- with existent class and non-existent method --
|
||||||
|
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Warning: array_map() expects parameter 1 to be a valid callback, class 'SimpleClass' does not have a method 'non-existent' in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
Done
|
Done
|
||||||
|
|
|
@ -74,7 +74,7 @@ array(3) {
|
||||||
}
|
}
|
||||||
-- accessing child method from parent class --
|
-- accessing child method from parent class --
|
||||||
|
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Warning: array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have a method 'staticchild' in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
-- accessing parent method using child class object --
|
-- accessing parent method using child class object --
|
||||||
array(3) {
|
array(3) {
|
||||||
|
@ -87,6 +87,6 @@ array(3) {
|
||||||
}
|
}
|
||||||
-- accessing child method using parent class object --
|
-- accessing child method using parent class object --
|
||||||
|
|
||||||
Warning: array_map() expects parameter 1 to be valid callback, array given in %s on line %d%d
|
Warning: array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have a method 'staticchild' in %s on line %d
|
||||||
NULL
|
NULL
|
||||||
Done
|
Done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue