mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
25 lines
297 B
PHP
25 lines
297 B
PHP
--TEST--
|
|
SPL: DoublyLinkedList: Iterator
|
|
--FILE--
|
|
<?php
|
|
$a = new SplDoublyLinkedList();
|
|
$a->push(1);
|
|
$a->push(2);
|
|
$a->push(3);
|
|
|
|
$a->rewind();
|
|
while ($a->valid()) {
|
|
var_dump($a->current(), $a->next());
|
|
}
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECT--
|
|
int(1)
|
|
NULL
|
|
int(2)
|
|
NULL
|
|
int(3)
|
|
NULL
|
|
===DONE===
|