public function test()
{
$fn = function ($v, $k, $collection) {
InvalidArgumentException::assertCollection($collection, __FUNCTION__, 3);
return $k . $v;
};
$this->assertSame(['0value' => 'value', '1value' => 'value'], reindex($this->list, $fn));
$this->assertSame(['0value' => 'value', '1value' => 'value'], reindex($this->listIterator, $fn));
$this->assertSame(['k1val1' => 'val1', 'k2val2' => 'val2'], reindex($this->hash, $fn));
$this->assertSame(['k1val1' => 'val1', 'k2val2' => 'val2'], reindex($this->hashIterator, $fn));
}