Annotation of embedaddon/php/ext/standard/tests/file/is_executable_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test 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: 
                      9: echo "*** Testing is_executable(): error conditions ***\n";
                     10: var_dump( is_executable() );  // args < expected no of arguments
                     11: 
                     12: var_dump( is_executable(1, 2) );  // args > expected no. of arguments
                     13: 
                     14: echo "\n*** Testing is_exceutable() on non-existent directory ***\n";
                     15: var_dump( is_executable(dirname(__FILE__)."/is_executable") );
                     16: 
                     17: echo "Done\n";
                     18: --EXPECTF--
                     19: *** Testing is_executable(): error conditions ***
                     20: 
                     21: Warning: is_executable() expects exactly 1 parameter, 0 given in %s on line %d
                     22: NULL
                     23: 
                     24: Warning: is_executable() expects exactly 1 parameter, 2 given in %s on line %d
                     25: NULL
                     26: 
                     27: *** Testing is_exceutable() on non-existent directory ***
                     28: bool(false)
                     29: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>