public function doesNotEqualMapWithDifferentContents() { $other = new HashTable(); $this->map->put(new String('color'), new String('blue')); $other->put(new String('color'), new String('yellow')); $this->assertFalse($this->map->equals($other)); }
public function hashTableRemoveElement() { $c = new HashTable(); $c->put(new String('hello'), new String('world')); $this->assertTrue(isset($c[new String('hello')])); unset($c[new String('hello')]); $this->assertFalse(isset($c[new String('hello')])); }