1--TEST-- 2Test filetype() function: Basic functionality 3--FILE-- 4<?php 5/* 6Prototype: string filetype ( string $filename ); 7Description: Returns the type of the file. Possible values are fifo, char, 8 dir, block, link, file, and unknown. 9*/ 10 11echo "*** Testing filetype() with files and dirs ***\n"; 12 13print( filetype(__FILE__) )."\n"; 14print( filetype(".") )."\n"; 15 16echo "*** Done ***\n"; 17?> 18--EXPECT-- 19*** Testing filetype() with files and dirs *** 20file 21dir 22*** Done *** 23