1--TEST-- 2SPL: SplFileObject::rewind variation 001 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 15$s->seek(15); 16echo $s->current(); 17$s->next(); 18echo $s->current(); 19var_dump($s->valid()); 20$s->rewind(); 21var_dump($s->valid()); 22echo $s->current(); 23?> 24--EXPECT-- 25?> 26bool(false) 27bool(true) 28<?php 29