예제 #1
0
파일: HashMapTest.php 프로젝트: pmvc/pmvc
 public function testOffsetUnset()
 {
     $arr = ['a' => '111', 'b' => '222'];
     $hash = new HashMap($arr);
     $this->assertTrue(isset($hash['a']));
     unset($hash['a']);
     $this->assertFalse(isset($hash['a']));
     $this->assertTrue(isset($hash['b']));
     $hash->offsetUnset();
     $this->assertFalse(isset($hash['b']));
 }