예제 #1
0
 /**
  *
  */
 public function testPopAndGet()
 {
     $map = new HashMap();
     $map['foo'] = 'bar';
     $map['baz'] = 'lorem';
     $this->assertEquals('bar', $map->pop('foo'));
     $this->assertFalse($map->contains('foo'));
     $this->assertCount(1, $map);
     $this->assertEquals('lorem', $map['baz']);
 }