1--TEST-- 2SPL: SplFileObject::current variation error 3--CREDITS-- 4Ricardo Oedietram <ricardo@odracir.nl> 5Erwin 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 16echo $s->current('foo'); 17?> 18--EXPECTF-- 19Warning: SplFileObject::current() expects exactly 0 parameters, 1 given in %s on line %d 20