Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function ceiling($item)
 {
     return $this->tree->ceiling($item);
 }
 /**
  * @expectedException \Novuso\System\Exception\UnderflowException
  */
 public function test_that_ceiling_throws_exception_when_empty()
 {
     $tree = new RedBlackSearchTree(new ComparableComparator());
     $tree->ceiling(WeekDay::WEDNESDAY());
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  */
 public function ceiling($key)
 {
     return $this->tree->ceiling($key);
 }