mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
23 lines
481 B
PHP
23 lines
481 B
PHP
--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 ***
|