Annotation of embedaddon/php/ext/spl/tests/SplFileObject_seek_error_001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SplFileObject::seek function - test parameters
3: --FILE--
4: <?php
5: $obj = New SplFileObject(__FILE__);
6: $obj->seek(1,2);
7: $obj->seek();
8: try {
9: $obj->seek(-1);
10: } catch (LogicException $e) {
11: echo($e->getMessage());
12: }
13: ?>
14: --EXPECTF--
15:
16: Warning: SplFileObject::seek() expects exactly 1 parameter, 2 given in %s
17:
18: Warning: SplFileObject::seek() expects exactly 1 parameter, 0 given in %s
19: Can't seek file %s to negative line %s
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>