--TEST-- Test abs() function : usage variations - different data types as $number arg --FILE-- getMessage(), "\n"; } $iterator++; }; fclose($fp); ?> --EXPECTF-- *** Testing abs() : usage variations *** -- Iteration 1 -- Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d int(0) -- Iteration 2 -- Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d int(0) -- Iteration 3 -- int(1) -- Iteration 4 -- int(0) -- Iteration 5 -- int(1) -- Iteration 6 -- int(0) -- Iteration 7 -- abs(): Argument #1 ($num) must be of type int|float, string given -- Iteration 8 -- abs(): Argument #1 ($num) must be of type int|float, string given -- Iteration 9 -- abs(): Argument #1 ($num) must be of type int|float, array given -- Iteration 10 -- abs(): Argument #1 ($num) must be of type int|float, string given -- Iteration 11 -- abs(): Argument #1 ($num) must be of type int|float, string given -- Iteration 12 -- abs(): Argument #1 ($num) must be of type int|float, string given -- Iteration 13 -- abs(): Argument #1 ($num) must be of type int|float, classA given -- Iteration 14 -- Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d int(0) -- Iteration 15 -- Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d int(0) -- Iteration 16 -- abs(): Argument #1 ($num) must be of type int|float, resource given