Exemplo n.º 1
0
 public function test_clearRemovesAllElements()
 {
     $tree = new BinaryTree();
     $tree->insert(new types\NumericContainer(1));
     $tree->clear();
     $this->assertTrue($tree->isEmpty());
 }