function testAddSameElementTwice() { $set = new HashSet("string"); $set->add("Hello there"); $set->add("Hello there"); $this->assertEqual(1, $set->size()); $this->assertEqual("Hello there", $set->get(0)); }