public testThatAppendWithEmptyReturnsSameAsTheOriginalButReindexedKeys ( Pinq\ITraversable $traversable, array $data ) | ||
$traversable | Pinq\ITraversable | |
$data | array |
public function testThatAppendWithEmptyReturnsSameAsTheOriginalButReindexedKeys(\Pinq\ITraversable $traversable, array $data)
{
$appendedWithTraversable = $traversable->append([]);
$appendedWithArray = $traversable->append([]);
$appendedWithIterator = $traversable->append(new \ArrayObject([]));
$this->assertMatches($appendedWithTraversable, array_values($data));
$this->assertMatches($appendedWithArray, array_values($data));
$this->assertMatches($appendedWithIterator, array_values($data));
}