summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFileObject_seek_error_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/SplFileObject_seek_error_001.phpt')
-rw-r--r--ext/spl/tests/SplFileObject_seek_error_001.phpt9
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/spl/tests/SplFileObject_seek_error_001.phpt b/ext/spl/tests/SplFileObject_seek_error_001.phpt
index 4de5bcdd4d..8741e3b788 100644
--- a/ext/spl/tests/SplFileObject_seek_error_001.phpt
+++ b/ext/spl/tests/SplFileObject_seek_error_001.phpt
@@ -2,9 +2,7 @@
SplFileObject::seek function - test parameters
--FILE--
<?php
-$obj = New SplFileObject(__FILE__);
-$obj->seek(1,2);
-$obj->seek();
+$obj = new SplFileObject(__FILE__);
try {
$obj->seek(-1);
} catch (LogicException $e) {
@@ -12,7 +10,4 @@ try {
}
?>
--EXPECTF--
-Warning: SplFileObject::seek() expects exactly 1 parameter, 2 given in %s
-
-Warning: SplFileObject::seek() expects exactly 1 parameter, 0 given in %s
-Can't seek file %s to negative line %s
+Can't seek file %s to negative line -1