--TEST-- Test trim() function --FILE-- --EXPECTF-- unicode(0) "" unicode(0) "" unicode(1) "0" unicode(1) "0" unicode(13) " testing trim" unicode(17) " testing trim " unicode(15) " testing trim " *** Testing error conditions *** Warning: trim() expects at least 1 parameter, 0 given in %s on line %d NULL Warning: trim() expects at most 2 parameters, 3 given in %s on line %d NULL Warning: trim() expects at most 2 parameters, 3 given in %s on line %d NULL *** Testing with OBJECTS *** unicode(4) "bjec" *** Testing with String with embedded NULL *** unicode(22) "2340567800efgh\xijkl" *** Testing with heredoc string *** unicode(12) " heredoc str" Done