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