Annotation of embedaddon/php/ext/spl/tests/DirectoryIterator_getInode_error.phpt, revision 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: $fileInfo = new SplFileInfo('not_existing');
! 20: var_dump($fileInfo->getInode());
! 21: ?>
! 22:
! 23: --EXPECTF--
! 24: Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileInfo::getInode(): stat failed for %s' in %s
! 25: Stack trace:
! 26: #0 %s: SplFileInfo->getInode()
! 27: #1 {main}
! 28: thrown in %s
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>