Annotation of embedaddon/php/ext/spl/tests/fileobject_getsize_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: SplFileObject::getSize
3: --CREDITS--
4: H�vard Eide <nucleuz at gmail.com>
5: #Testfest php.no
6: --INI--
7: include_path=.
8: --FILE--
9: <?php
10: $file = __DIR__ ."/data.txt";
11: file_put_contents($file, "foobar");
12:
13: $s = new SplFileObject( $file );
14: echo $s->getSize();
15: ?>
16: --CLEAN--
17: <?php
18: $file = __DIR__ ."/data.txt";
19: unlink($file);
20: ?>
21: --EXPECT--
22: 6
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>