예제 #1
0
파일: SortedSet.php 프로젝트: novuso/system
 /**
  * {@inheritdoc}
  */
 public function ceiling($item)
 {
     return $this->tree->ceiling($item);
 }
예제 #2
0
 /**
  * @expectedException \Novuso\System\Exception\UnderflowException
  */
 public function test_that_ceiling_throws_exception_when_empty()
 {
     $tree = new RedBlackSearchTree(new ComparableComparator());
     $tree->ceiling(WeekDay::WEDNESDAY());
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public function ceiling($key)
 {
     return $this->tree->ceiling($key);
 }