php-src/ext/spl/tests/bug67805.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

16 lines
343 B
PHP

--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)