diff options
Diffstat (limited to 'ext/spl/tests/fileobject_getcurrentline_basic.phpt')
-rw-r--r-- | ext/spl/tests/fileobject_getcurrentline_basic.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/spl/tests/fileobject_getcurrentline_basic.phpt b/ext/spl/tests/fileobject_getcurrentline_basic.phpt new file mode 100644 index 0000000..607fce6 --- /dev/null +++ b/ext/spl/tests/fileobject_getcurrentline_basic.phpt @@ -0,0 +1,19 @@ +--TEST-- +SPL: SplFileObject::getCurrentLine +--CREDITS-- +H�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 |