php-src/ext/spl/tests/fileobject_getsize_basic.phpt
Antony Dovgal f77382f412 MFH
2008-07-02 12:25:15 +00:00

23 lines
341 B
PHP
Raw Blame History

--TEST--
SPL: SplFileObject::getSize
--CREDITS--
H<EFBFBD>vard Eide <nucleuz at gmail.com>
#Testfest php.no
--INI--
include_path=.
--FILE--
<?php
$file = __DIR__ ."/data.txt";
file_put_contents($file, "foobar");
$s = new SplFileObject( $file );
echo $s->getSize();
?>
--CLEAN--
<?php
$file = __DIR__ ."/data.txt";
unlink($file);
?>
--EXPECT--
6