function testFirst() { $map = new SortedMap(); $map[0] = 'hello'; $this->assertEquals(0, $map->firstKey()); $map[1] = 'there'; $this->assertEquals(0, $map->firstKey()); }