public testThatUnionWithEmptyReturnsUniqueReindexedValues ( Pinq\ITraversable $traversable, array $data ) | ||
$traversable | Pinq\ITraversable | |
$data | array |
public function testThatUnionWithEmptyReturnsUniqueReindexedValues(\Pinq\ITraversable $traversable, array $data)
{
$unioned = $traversable->union([]);
$this->assertMatches($unioned, array_values(array_unique($data)));
}