1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00
Files
archived-php-src/ext/spl/tests/SplHeap_with_by_reference_compare.phpt
T
2021-07-14 15:19:51 +02:00

17 lines
264 B
PHP

--TEST--
SplHeap using a compare function returning by-reference
--FILE--
<?php
class Heap extends SplMinHeap {
public function &compare($a, $b): int {
return $a;
}
}
$h = new Heap;
$h->insert(0);
$h->insert(0);
?>
===DONE===
--EXPECT--
===DONE===