1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00
Files
archived-php-src/ext/spl/tests/SplFileObject_seek_error_001.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +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