mirror of
https://github.com/php/php-src.git
synced 2025-01-10 21:14:37 +08:00
20 lines
354 B
PHP
20 lines
354 B
PHP
--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===
|