Annotation of embedaddon/php/ext/standard/tests/file/filetype_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test filetype() function: Basic functionality
3: --FILE--
4: <?php
5: /*
6: Prototype: string filetype ( string $filename );
7: Description: Returns the type of the file. Possible values are fifo, char,
8: dir, block, link, file, and unknown.
9: */
10:
11: echo "*** Testing filetype() with files and dirs ***\n";
12:
13: print( filetype(__FILE__) )."\n";
14: print( filetype(".") )."\n";
15:
16: echo "*** Done ***\n";
17: ?>
18: --EXPECTF--
19: *** Testing filetype() with files and dirs ***
20: file
21: dir
22: *** Done ***
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>