mirror of
https://github.com/php/php-src.git
synced 2024-09-26 20:37:29 +00:00
20 lines
354 B
Plaintext
20 lines
354 B
Plaintext
|
--TEST--
|
||
|
SPL: SplPriorityQueue: test compare
|
||
|
--CREDITS--
|
||
|
Mark Schaschke (mark@fractalturtle.com)
|
||
|
TestFest London May 2009
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$h = new SplPriorityQueue();
|
||
|
var_dump($h->compare(4, 5) < 0);
|
||
|
var_dump($h->compare(5, 5) == 0);
|
||
|
var_dump($h->compare(5, 4) > 0);
|
||
|
?>
|
||
|
===DONE===
|
||
|
<?php exit(0); ?>
|
||
|
--EXPECTF--
|
||
|
bool(true)
|
||
|
bool(true)
|
||
|
bool(true)
|
||
|
===DONE===
|