--TEST-- Test array_map() function : usage variations - object functionality --FILE-- --EXPECTF-- *** Testing array_map() : object functionality *** -- simple class with public variable and method -- Strict Standards: Non-static method SimpleClass::square() cannot be called statically in %s on line %d Strict Standards: Non-static method SimpleClass::square() cannot be called statically in %s on line %d Strict Standards: Non-static method SimpleClass::square() cannot be called statically in %s on line %d array(2) { [0]=> int(1) [1]=> int(4) } -- simple class with private variable and method -- Strict Standards: Non-static method SimpleClassPri::add() cannot be called statically in %s on line %d Warning: array_map(): The first argument, 'SimpleClassPri::add', should be either NULL or a valid callback in %s on line %d NULL -- simple class with protected variable and method -- Strict Standards: Non-static method SimpleClassPro::mul() cannot be called statically in %s on line %d Warning: array_map(): The first argument, 'SimpleClassPro::mul', should be either NULL or a valid callback in %s on line %d NULL -- class without members -- Warning: array_map(): The first argument, 'Array', should be either NULL or a valid callback in %s on line %d NULL -- abstract class -- Strict Standards: Non-static method ChildClass::emptyFunction() cannot be called statically in %s on line %d Strict Standards: Non-static method ChildClass::emptyFunction() cannot be called statically in %s on line %d defined in child Strict Standards: Non-static method ChildClass::emptyFunction() cannot be called statically in %s on line %d defined in childarray(2) { [0]=> NULL [1]=> NULL } -- class with final method -- Strict Standards: Non-static method FinalClass::finalMethod() cannot be called statically in %s on line %d Strict Standards: Non-static method FinalClass::finalMethod() cannot be called statically in %s on line %d This function can't be overloaded Strict Standards: Non-static method FinalClass::finalMethod() cannot be called statically in %s on line %d This function can't be overloadedarray(2) { [0]=> NULL [1]=> NULL } -- class with static members -- array(2) { [0]=> int(1) [1]=> int(4) } Warning: array_map(): The first argument, 'StaticClass::cube', should be either NULL or a valid callback in %s on line %d NULL Warning: array_map(): The first argument, 'StaticClass::retVal', should be either NULL or a valid callback in %s on line %d NULL -- class implementing an interface -- array(2) { [0]=> int(1) [1]=> int(4) } Done