public function testConstruct()
{
$a = array(1, 2, 'key3' => 3);
$map = new TPriorityMap($a);
$this->assertEquals(3, $map->getCount());
$map2 = new TPriorityMap($this->map);
$this->assertEquals(2, $map2->getCount());
/* Test the priority functionality of TPriorityMap */
$map3 = new TPriorityMap($this->map, false, 100, -1);
$this->assertEquals(100, $map3->getDefaultPriority());
$this->assertEquals(-1, $map3->getPrecision());
}