mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
23 lines
481 B
Plaintext
23 lines
481 B
Plaintext
|
--TEST--
|
||
|
Test filetype() function: Basic functionality
|
||
|
--FILE--
|
||
|
<?php
|
||
|
/*
|
||
|
Prototype: string filetype ( string $filename );
|
||
|
Description: Returns the type of the file. Possible values are fifo, char,
|
||
|
dir, block, link, file, and unknown.
|
||
|
*/
|
||
|
|
||
|
echo "*** Testing filetype() with files and dirs ***\n";
|
||
|
|
||
|
print( filetype(__FILE__) )."\n";
|
||
|
print( filetype(".") )."\n";
|
||
|
|
||
|
echo "*** Done ***\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
*** Testing filetype() with files and dirs ***
|
||
|
file
|
||
|
dir
|
||
|
*** Done ***
|