/** * @expectedException UnderflowException */ public function testPopItemOnEmptyMap() { $map = new HashMap(); $map->popItem(); }