summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fileobject_setmaxlinelen_error001.phpt
blob: 6bfdfdcf5099451be2fa020dd99e0374c8ff3b1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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