1--TEST-- 2SPL: Spl File Info test getInode 3--CREDITS-- 4Cesare D'Amico <cesare.damico@gruppovolta.it> 5Andrea Giorgini <agiorg@gmail.com> 6Filippo De Santis <fd@ideato.it> 7Daniel Londero <daniel.londero@gmail.com> 8Francesco Trucchia <ft@ideato.it> 9Jacopo Romei <jacopo@sviluppoagile.it> 10#Test Fest Cesena (Italy) on 2009-06-20 11--SKIPIF-- 12<?php 13if (substr(PHP_OS, 0, 3) == 'WIN') die("skip this test not for Windows platforms"); 14?> 15--FILE-- 16<?php 17 18//file 19touch ('SplFileInfo_getInode_basic.txt'); 20$fileInfo = new SplFileInfo('SplFileInfo_getInode_basic.txt'); 21$result = shell_exec('ls -i SplFileInfo_getInode_basic.txt'); 22var_dump($fileInfo->getInode() == (int) $result); 23 24?> 25--CLEAN-- 26<?php 27unlink('SplFileInfo_getInode_basic.txt'); 28?> 29--EXPECT-- 30bool(true) 31