1--TEST-- 2Test strnatcasecmp() function : error conditions 3--FILE-- 4<?php 5/* Prototype : int strnatcasecmp ( string $str1 , string $str2 ) 6 * Description: Case insensitive string comparisons using a "natural order" algorithm 7 * Source code: ext/standard/string.c 8*/ 9echo "*** Testing strnatcasecmp() : error conditions ***\n"; 10 11echo "-- Testing strnatcmp() function with Zero arguments --\n"; 12var_dump( strnatcasecmp() ); 13 14echo "\n\n-- Testing strnatcasecmp() function with more than expected no. of arguments --\n"; 15$str1 = "abc1"; 16$str2 = "ABC1"; 17$extra_arg = 10; 18var_dump( strnatcasecmp( $str1, $str2, $extra_arg) ); 19?> 20===DONE=== 21--EXPECTF-- 22*** Testing strnatcasecmp() : error conditions *** 23-- Testing strnatcmp() function with Zero arguments -- 24 25Warning: strnatcasecmp() expects exactly 2 parameters, 0 given in %s on line %d 26NULL 27 28 29-- Testing strnatcasecmp() function with more than expected no. of arguments -- 30 31Warning: strnatcasecmp() expects exactly 2 parameters, 3 given in %s on line %d 32NULL 33===DONE=== 34