--TEST--
SPL: SplPriorityQueue: iteration through methods
--FILE--
<?php
$h 
= new SplPriorityQueue();

$h->insert(11);
$h->insert(55);
$h->insert(00);
$h->insert(44);

$h->rewind();
echo 
"count(\$h) = ".count($h)."\n";
echo 
"\$h->count() = ".$h->count()."\n";
while (
$h->valid()) {
    
$k $h->key();
    
$v $h->current();
    echo 
"$k=>$v\n";
    
$h->next();
}
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
count($h) = 4
$h->count() = 4
3=>5
2=>4
1=>1
0=>0
===DONE===