/** * 引数の Map のマッピングが適用されることを確認します. * * @covers Peach\Util\ArrayMap::putAll */ public function testPutAll() { $map = new ArrayMap(); $map->put("test1", "hoge"); $map->put("test2", "fuga"); $map->put("key3", "piyo"); $this->object->putAll($map); $arr = $this->object->asArray(); $expected = array("key1" => "foo", "key2" => "bar", "key3" => "piyo", "test1" => "hoge", "test2" => "fuga"); $this->assertSame($expected, $arr); }