php-src/ext/spl/tests/SplFileObject_rewind_basic.phpt
2012-07-14 19:21:34 -07:00

22 lines
311 B
PHP

--TEST--
SPL: SplFileObject::rewind basic
--CREDITS--
Ricardo Oedietram <ricardo@odracir.nl>
Erwin Poeze <erwin.poeze@gmail.com>
#PFZ June PHP TestFest 2012
--FILE--
<?php
//line 2
//line 3
//line 4
//line 5
$s = new SplFileObject(__FILE__);
$s->seek(3);
$s->rewind();
echo $s->current();
?>
--EXPECT--
<?php