Ejemplo n.º 1
0
 public function testPutAll()
 {
     // Remove the following lines when you implement this test.
     $hashmap = new HashMap();
     $hashmap->put(87, 48);
     $hashmap->put(45, 98);
     $hashmap->put(7889, 4);
     $this->object->putAll($hashmap);
     $this->assertTrue($this->object->get(87)->toNative() == 48);
     $this->assertTrue($this->object->containsValue(48));
     $this->assertTrue($this->object->get(45)->toNative() == 98);
     $this->assertTrue($this->object->containsValue(98));
     $this->assertTrue($this->object->get(7889)->toNative() == 4);
     $this->assertTrue($this->object->containsValue(4));
 }