Annotation of embedaddon/php/ext/spl/tests/SplFileObject_current_error001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: SplFileObject::current variation error
3: --CREDITS--
4: Ricardo Oedietram <ricardo@odracir.nl>
5: Erwin Poeze <erwin.poeze@gmail.com>
6: #PFZ June PHP TestFest 2012
7: --FILE--
8: <?php
9: //line 2
10: //line 3
11: //line 4
12: //line 5
13: $s = new SplFileObject(__FILE__);
14: $s->seek(2);
15:
16: echo $s->current('foo');
17: ?>
18: --EXPECTF--
19: Warning: SplFileObject::current() expects exactly 0 parameters, 1 given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>