--TEST-- Test rtrim() function : usage variations - test values for $str argument --FILE-- ===DONE=== --EXPECTF-- *** Testing rtrim() function: with unexpected inputs for 'str' argument *** -- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- unicode(1) "1" -- Iteration 3 -- unicode(3) "255" -- Iteration 4 -- unicode(3) "256" -- Iteration 5 -- unicode(10) "2147483647" -- Iteration 6 -- unicode(11) "-2147483648" -- Iteration 7 -- unicode(4) "10.5" -- Iteration 8 -- unicode(5) "-20.5" -- Iteration 9 -- unicode(12) "101234567000" -- Iteration 10 -- Warning: rtrim() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 11 -- Warning: rtrim() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 12 -- Warning: rtrim() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 13 -- unicode(1) "1" -- Iteration 14 -- unicode(0) "" -- Iteration 15 -- unicode(1) "1" -- Iteration 16 -- unicode(0) "" -- Iteration 17 -- unicode(0) "" -- Iteration 18 -- unicode(0) "" -- Iteration 19 -- unicode(19) " !---sample object" -- Iteration 20 -- Warning: rtrim() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d NULL -- Iteration 21 -- unicode(0) "" -- Iteration 22 -- unicode(0) "" ===DONE===