--TEST-- Test substr_replace() function : error conditions --FILE-- ===DONE=== --EXPECTF-- *** Testing substr_replace() : error conditions *** -- Testing substr_replace() function with less than expected no. of arguments -- Warning: substr_replace() expects at least 3 parameters, 0 given in %s on line %d NULL Warning: substr_replace() expects at least 3 parameters, 2 given in %s on line %d NULL -- Testing substr_replace() function with more than expected no. of arguments -- Warning: substr_replace() expects at most 4 parameters, 5 given in %s on line %d NULL -- Testing substr_replace() function with start and length different types -- Warning: substr_replace(): 'from' and 'len' should be of same type - numerical or array in %s on line %d string(12) "Good morning" Warning: substr_replace(): 'from' and 'len' should be of same type - numerical or array in %s on line %d string(12) "Good morning" -- Testing substr_replace() function with start and length with a different number of elments -- Warning: substr_replace(): 'from' and 'len' should have the same number of elements in %s on line %d string(12) "Good morning" -- Testing substr_replace() function with start and length as arrays but string not-- Warning: substr_replace(): Functionality of 'from' and 'len' as arrays is not implemented in %s on line %d string(12) "Good morning" ===DONE===