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