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