/** * @depends testOffsetSet */ function testClear() { $map = new SortedMap(); $map[0] = 0; $map->clear(); $this->assertCount(0, $map); $this->assertTrue($map->isEmpty()); $this->assertTrue($map->getIterator()->isEmpty()); }