12345678910111213141516171819202122232425262728293031323334353637 |
- --TEST--
- Test fileatime(), filemtime(), filectime() & touch() functions : basic functionality
- --FILE--
- <?php
- echo "*** Testing the basic functionality with file ***\n";
- print( @date('Y:M:D:H:i:s', fileatime(__FILE__)) )."\n";
- print( @date('Y:M:D:H:i:s', filemtime(__FILE__)) )."\n";
- print( @date('Y:M:D:H:i:s', filectime(__FILE__)) )."\n";
- print( @date('Y:M:D:H:i:s', touch(__DIR__."/005_basic.tmp")) )."\n";
- echo "*** Testing the basic functionality with dir ***\n";
- print( @date('Y:M:D:H:i:s', fileatime(".")) )."\n";
- print( @date('Y:M:D:H:i:s', filemtime(".")) )."\n";
- print( @date('Y:M:D:H:i:s', filectime(".")) )."\n";
- print( @date('Y:M:D:H:i:s', touch(__DIR__."/005_basic")) )."\n";
- echo "\n*** Done ***\n";
- ?>
- --CLEAN--
- <?php
- unlink(__DIR__."/005_basic.tmp");
- unlink(__DIR__."/005_basic");
- ?>
- --EXPECTF--
- *** Testing the basic functionality with file ***
- %d:%s:%s:%d:%d:%d
- %d:%s:%s:%d:%d:%d
- %d:%s:%s:%d:%d:%d
- %d:%s:%s:%d:%d:%d
- *** Testing the basic functionality with dir ***
- %d:%s:%s:%d:%d:%d
- %d:%s:%s:%d:%d:%d
- %d:%s:%s:%d:%d:%d
- %d:%s:%s:%d:%d:%d
- *** Done ***
|