1--TEST-- 2Test strrev() function : error conditions 3--FILE-- 4<?php 5/* Prototype : string strrev(string $str); 6 * Description: Reverse a string 7 * Source code: ext/standard/string.c 8*/ 9 10echo "*** Testing strrev() : error conditions ***\n"; 11echo "-- Testing strrev() function with Zero arguments --"; 12var_dump( strrev() ); 13 14echo "\n-- Testing strrev() function with more than expected no. of arguments --"; 15var_dump( strrev("string", 'extra_arg') ); 16echo "*** Done ***"; 17?> 18--EXPECTF-- 19*** Testing strrev() : error conditions *** 20-- Testing strrev() function with Zero arguments -- 21Warning: strrev() expects exactly 1 parameter, 0 given in %s on line %d 22NULL 23 24-- Testing strrev() function with more than expected no. of arguments -- 25Warning: strrev() expects exactly 1 parameter, 2 given in %s on line %d 26NULL 27*** Done *** 28