--TEST-- Test strtr() function : usage variations - unexpected inputs for 'from' argument --FILE-- getMessage() . "\n"; } $count++; } fclose($file_handle); //closing the file handle ?> --EXPECTF-- *** Testing strtr() function: with unexpected inputs for 'from' *** -- Iteration 1 -- string(6) "a12atm" -- Iteration 2 -- string(6) "0a2atm" -- Iteration 3 -- string(6) "01tatm" -- Iteration 4 -- string(6) "ta2atm" -- Iteration 5 -- string(6) "m1tatm" -- Iteration 6 -- string(6) "tm0atm" -- Iteration 7 -- strtr(): Argument #2 ($from) must be of type string, array given -- Iteration 8 -- strtr(): Argument #2 ($from) must be of type string, array given -- Iteration 9 -- strtr(): Argument #2 ($from) must be of type string, array given -- Iteration 10 -- string(6) "0a2atm" -- Iteration 11 -- string(6) "012atm" -- Iteration 12 -- string(6) "0a2atm" -- Iteration 13 -- string(6) "012atm" -- Iteration 14 -- Deprecated: strtr(): Passing null to parameter #2 ($from) of type array|string is deprecated in %s on line %d string(6) "012atm" -- Iteration 15 -- Deprecated: strtr(): Passing null to parameter #2 ($from) of type array|string is deprecated in %s on line %d string(6) "012atm" -- Iteration 16 -- string(6) "012ttm" -- Iteration 17 -- strtr(): Argument #2 ($from) must be of type string, resource given