1--TEST-- 2Test is_executable() function: error conditions 3--FILE-- 4<?php 5/* Prototype: bool is_executable ( string $filename ); 6 Description: Tells whether the filename is executable 7*/ 8 9echo "*** Testing is_executable(): error conditions ***\n"; 10var_dump( is_executable() ); // args < expected no of arguments 11 12var_dump( is_executable(1, 2) ); // args > expected no. of arguments 13 14echo "\n*** Testing is_exceutable() on non-existent directory ***\n"; 15var_dump( is_executable(__DIR__."/is_executable") ); 16 17echo "Done\n"; 18--EXPECTF-- 19*** Testing is_executable(): error conditions *** 20 21Warning: is_executable() expects exactly 1 parameter, 0 given in %s on line %d 22NULL 23 24Warning: is_executable() expects exactly 1 parameter, 2 given in %s on line %d 25NULL 26 27*** Testing is_exceutable() on non-existent directory *** 28bool(false) 29Done 30