php-src/ext/spl/tests/SplFileInfo_getInode_error.phpt

24 lines
619 B
Plaintext
Raw Normal View History

--TEST--
SPL: Spl File Info test getPerms
--CREDITS--
2009-08-26 17:17:58 +00:00
Cesare D'Amico <cesare.damico@gruppovolta.it>
Andrea Giorgini <agiorg@gmail.com>
Filippo De Santis <fd@ideato.it>
Daniel Londero <daniel.londero@gmail.com>
Francesco Trucchia <ft@ideato.it>
Jacopo Romei <jacopo@sviluppoagile.it>
#Test Fest Cesena (Italy) on 2009-06-20
--FILE--
<?php
2009-08-26 17:17:58 +00:00
//file
$fileInfo = new SplFileInfo('not_existing');
var_dump($fileInfo->getInode());
?>
--EXPECTF--
Fatal error: Uncaught RuntimeException: SplFileInfo::getInode(): stat failed for not_existing in %s
2009-08-26 17:17:58 +00:00
Stack trace:
#0 %s: SplFileInfo->getInode()
#1 {main}
thrown in %s on line %d