1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/spl/tests/SplFileObject_seek_error_001.phpt
Nikita Popov 68195bd481 Update ext/spl parameter names
Closes GH-6284.
2020-10-07 12:26:46 +02:00

14 lines
282 B
PHP

--TEST--
SplFileObject::seek function - test parameters
--FILE--
<?php
$obj = new SplFileObject(__FILE__);
try {
$obj->seek(-1);
} catch (\ValueError $e) {
echo($e->getMessage());
}
?>
--EXPECT--
SplFileObject::seek(): Argument #1 ($line) must be greater than or equal to 0