1--TEST--
2Test dirname() function : error conditions
3--FILE--
4<?php
5/* Prototype: string dirname ( string $path );
6   Description: Returns directory name component of path.
7*/
8echo "*** Testing error conditions ***\n";
9// zero arguments
10var_dump( dirname() );
11
12// more than expected no. of arguments
13var_dump( dirname("/var/tmp/bar.gz", ".gz") );
14
15echo "Done\n";
16?>
17--EXPECTF--
18*** Testing error conditions ***
19
20Warning: dirname() expects exactly 1 parameter, 0 given in %s on line %d
21NULL
22
23Warning: dirname() expects exactly 1 parameter, 2 given in %s on line %d
24NULL
25Done
26