Annotation of embedaddon/php/ext/spl/tests/SplFileInfo_getInode_basic.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>