php-src/ext/spl/tests/fileobject_getcurrentline_basic.phpt
2008-06-12 20:46:12 +00:00

20 lines
294 B
PHP
Raw Blame History

--TEST--
SPL: SplFileObject::getCurrentLine
--CREDITS--
H<EFBFBD>vard Eide <nucleuz at gmail.com>
#Testfest php.no
--FILE--
<?php
//line 2
//line 3
//line 4
//line 5
$s = new SplFileObject(__FILE__);
$s->seek(1);
echo $s->getCurrentLine();
echo $s->getCurrentLine();
?>
--EXPECT--
//line 3
//line 4