Help for this page
function testAdd() { $hash = new Hash; ... $hash->add("foo","bar"); assert($OK == $hash->remove("foo")); }
function testGetShouldNotDieHorriblyIfKeyNotFound() { $hash = new Hash; ... $hash->remove("foo"); assert("bar" != $hash->get("foo")); # hey look, still there }