Annotation of embedaddon/php/ext/spl/tests/SplFileObject_rewind_error001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: SplFileObject::rewind() with a parameter.
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:
10: file_put_contents('testdata.csv', 'eerste;tweede;derde');
11:
12: $fo = new SplFileObject('testdata.csv');
13:
14: $fo->rewind( "invalid" );
15:
16: ?>
17: --EXPECTF--
18: Warning: SplFileObject::rewind() expects exactly 0 parameters, 1 given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>