1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/spl/tests/fileobject_setmaxlinelen_error001.phpt
2012-07-14 19:22:03 -07:00

18 lines
296 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 (DomainException $e) {
echo 'DomainException thrown';
}
?>
--EXPECT--
DomainException thrown