1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 04:51:03 +02:00
Files
archived-php-src/ext/spl/tests/heap_008.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

35 lines
454 B
PHP

--TEST--
SPL: SplHeap: var_dump
--FILE--
<?php
$h = new SplMaxHeap();
$h->insert(1);
$h->insert(5);
$h->insert(0);
$h->insert(4);
var_dump($h);
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
object(SplMaxHeap)#1 (3) {
["flags":"SplHeap":private]=>
int(0)
["isCorrupted":"SplHeap":private]=>
bool(false)
["heap":"SplHeap":private]=>
array(4) {
[0]=>
int(5)
[1]=>
int(4)
[2]=>
int(0)
[3]=>
int(1)
}
}
===DONE===