php-src/ext/standard/tests/file/fileinode_basic.phpt
Ilija Tovilo f39b5c4c25
Close PHP tags in tests
Closes GH-12422
2023-10-18 17:34:10 +02:00

32 lines
609 B
PHP

--TEST--
Test fileinode() function: Basic functionality
--FILE--
<?php
echo "*** Testing fileinode() with file, directory ***\n";
/* Getting inode of created file */
$file_path = __DIR__;
fopen("$file_path/inode.tmp", "w");
print( fileinode("$file_path/inode.tmp") )."\n";
/* Getting inode of current file */
print( fileinode(__FILE__) )."\n";
/* Getting inode of directories */
print( fileinode(".") )."\n";
print( fileinode("./..") )."\n";
echo "\n*** Done ***";
?>
--CLEAN--
<?php
unlink (__DIR__."/inode.tmp");
?>
--EXPECTF--
*** Testing fileinode() with file, directory ***
%i
%i
%i
%i
*** Done ***