php-src/ext/spl/tests/bug62616.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
265 B
PHP

--TEST--
Bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault)
--FILE--
<?php
$ai = new ArrayIterator(array(0,1));
var_dump($ai->count());
$ii = new IteratorIterator($ai);
var_dump($ii->count());
?>
--EXPECT--
int(2)
int(2)