flush
[m6w6/ext-psi] / tests / stat / stat001.phpt
index c4b4b968892e918f62251fbf1ae5ad642f0c8191..9051123c802e0510341917446d886f727432b25c 100644 (file)
@@ -1,21 +1,22 @@
 --TEST--
 stat
 --INI--
-psi.directory={PWD}
+psi.directory={PWD}/../../psi.d:{PWD}
 --SKIPIF--
-<?php 
+<?php
 extension_loaded("psi") or die("skip - need ext/psi");
+PHP_OS === "Linux" or die("skip - only for Linux");
 ?>
 --FILE--
 ===TEST===
-<?php 
+<?php
 var_dump(psi\stat(__FILE__, $stat), $stat);
 ?>
 ===DONE===
 --EXPECTF--
 ===TEST===
 int(0)
-array(13) {
+array(16) {
   ["st_dev"]=>
   int(%d)
   ["st_ino"]=>
@@ -31,7 +32,7 @@ array(13) {
   ["st_rdev"]=>
   int(%d)
   ["st_size"]=>
-  int(76)
+  int(75)
   ["st_atim"]=>
   array(2) {
     ["tv_sec"]=>
@@ -39,6 +40,8 @@ array(13) {
     ["tv_nsec"]=>
     int(%d)
   }
+  ["st_atime"]=>
+  int(%d)
   ["st_mtim"]=>
   array(2) {
     ["tv_sec"]=>
@@ -46,6 +49,8 @@ array(13) {
     ["tv_nsec"]=>
     int(%d)
   }
+  ["st_mtime"]=>
+  int(%d)
   ["st_ctim"]=>
   array(2) {
     ["tv_sec"]=>
@@ -53,9 +58,11 @@ array(13) {
     ["tv_nsec"]=>
     int(%d)
   }
+  ["st_ctime"]=>
+  int(%d)
   ["st_blksize"]=>
   int(%d)
   ["st_blocks"]=>
   int(%d)
 }
-===DONE===
\ No newline at end of file
+===DONE===