--TEST-- Test rtrim() function : error conditions --FILE-- ===DONE=== --EXPECTF-- *** Testing rtrim() : error conditions *** -- Testing rtrim() function with no arguments -- Warning: rtrim() expects at least 1 parameter, 0 given in %s on line %d NULL -- Testing rtrim() function with more than expected no. of arguments -- Warning: rtrim() expects at most 2 parameters, 3 given in %s on line %d NULL -- Test rtrim function with various invalid charlists Warning: rtrim(): Invalid '..'-range, no character to the left of '..' in %s on line %d string(14) " Hello World " Warning: rtrim(): Invalid '..'-range, no character to the right of '..' in %s on line %d string(14) " Hello World " Warning: rtrim(): Invalid '..'-range, '..'-range needs to be incrementing in %s on line %d string(14) " Hello World " Warning: rtrim(): Invalid '..'-range in %s on line %d string(14) " Hello World " ===DONE===