mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
19 lines
354 B
PHP
19 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===
|