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

1.1       misho       1: --TEST--
                      2: Test pathinfo() function: error conditions
                      3: --FILE--
                      4: <?php
                      5: /* Prototype: mixed pathinfo ( string $path [, int $options] );
                      6:    Description: Returns information about a file path
                      7: */
                      8: 
                      9: echo "*** Testing pathinfo() for error conditions ***\n";
                     10: /* unexpected no. of arguments */
                     11: var_dump( pathinfo() );  /* args < expected */
                     12: var_dump( pathinfo("/home/1.html", 1, 3) );  /* args > expected */
                     13: 
                     14: echo "Done\n";
                     15: ?>
                     16: --EXPECTF--
                     17: *** Testing pathinfo() for error conditions ***
                     18: 
                     19: Warning: pathinfo() expects at least 1 parameter, 0 given in %s on line %d
                     20: NULL
                     21: 
                     22: Warning: pathinfo() expects at most 2 parameters, 3 given in %s on line %d
                     23: NULL
                     24: Done

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