Example #1
0
 /**
  * remove() をテストします. 以下を確認します.
  * 
  * - 引数に指定されたキーのマッピングが削除されること
  * - 存在しないキーを指定された場合は何も変化せず正常終了すること
  * 
  * @covers Peach\Util\ArrayMap::remove
  */
 public function testRemove()
 {
     $this->object->remove("key4");
     $this->assertSame(3, $this->object->size());
     $this->object->remove("key3");
     $this->assertSame(2, $this->object->size());
     $this->assertFalse($this->object->containsKey("key3"));
 }