xref: /PHP-7.4/ext/spl/tests/bug67805.phpt (revision ded3d984)
1--TEST--
2Bug #67805 SplFileObject setMaxLineLength
3--CREDITS--
4Willian Gustavo Veiga <contact@willianveiga.com>
5--FILE--
6<?php
7$splFileObject = new SplFileObject(__FILE__);
8$splFileObject->setMaxLineLen(3);
9$line = $splFileObject->getCurrentLine();
10var_dump($line === '<?p');
11var_dump(strlen($line) === 3);
12?>
13--EXPECT--
14bool(true)
15bool(true)
16