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/fileobject_setmaxlinelen_error001.phpt
2022-05-27 18:33:48 +01:00

18 lines
364 B
PHP

--TEST--
SPL: SplFileObject::setMaxLineLen error 001()
--CREDITS--
Erwin Poeze <erwin.poeze at gmail.com>
--FILE--
<?php
$s = new SplFileObject( __FILE__ );
try {
$s->setMaxLineLen(-1);
}
catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
SplFileObject::setMaxLineLen(): Argument #1 ($maxLength) must be greater than or equal to 0