public testThatExceptWithDuplicateValuesPreservesTheOriginalKeys ( Pinq\ITraversable $traversable, array $data ) | ||
$traversable | Pinq\ITraversable | |
$data | array |
public function testThatExceptWithDuplicateValuesPreservesTheOriginalKeys(\Pinq\ITraversable $traversable, array $data)
{
$otherData = ['test' => 1, 'anotherkey' => 3, 1000 => 5];
$except = $traversable->except($otherData);
$this->assertMatches($except, array_diff($data, $otherData));
}