1--TEST--
2SPL: SplFileObject::rewind() with a parameter.
3--CREDITS--
4Ricardo Oedietram <ricardo@odracir.nl>
5Erwin Poeze <erwin.poeze@gmail.com>
6#PFZ June PHP TestFest 2012
7--FILE--
8<?php
9
10file_put_contents('SplFileObject_rewind_error001.csv', 'eerste;tweede;derde');
11
12$fo = new SplFileObject('SplFileObject_rewind_error001.csv');
13
14$fo->rewind( "invalid" );
15
16?>
17--CLEAN--
18<?php
19unlink('SplFileObject_rewind_error001.csv');
20?>
21--EXPECTF--
22Warning: SplFileObject::rewind() expects exactly 0 parameters, 1 given in %s on line %d
23