mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
16 lines
343 B
PHP
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)
|