--TEST-- Test strtr() function : usage variations - unexpected inputs for 'str' argument --FILE-- --EXPECTF-- *** Testing strtr() function: with unexpected inputs for 'str' *** -- Iteration 1 -- unicode(1) "a" -- Iteration 2 -- unicode(1) "t" -- Iteration 3 -- unicode(2) "-m" -- Iteration 4 -- unicode(4) "ta.5" -- Iteration 5 -- unicode(5) "-ma.5" -- Iteration 6 -- unicode(12) "ta5aaaaaaaaa" -- Iteration 7 -- Warning: strtr() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 8 -- Warning: strtr() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 9 -- Warning: strtr() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 10 -- unicode(1) "t" -- Iteration 11 -- unicode(0) "" -- Iteration 12 -- unicode(1) "t" -- Iteration 13 -- unicode(0) "" -- Iteration 14 -- unicode(0) "" -- Iteration 15 -- unicode(0) "" -- Iteration 16 -- unicode(13) "s02ple objec1" -- Iteration 17 -- Warning: strtr() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d NULL -- Iteration 18 -- unicode(0) "" -- Iteration 19 -- unicode(0) "" *** Done ***