コード例 #1
0
 /**
  * @expectedException \Novuso\System\Exception\UnderflowException
  */
 public function test_that_remove_max_throws_exception_when_empty()
 {
     $tree = new RedBlackSearchTree(new ComparableComparator());
     $tree->removeMax();
 }
コード例 #2
0
ファイル: SortedSet.php プロジェクト: novuso/system
 /**
  * {@inheritdoc}
  */
 public function removeMax()
 {
     $this->tree->removeMax();
 }