Pinq\Tests\Integration\Traversable\DifferenceTest::testThatDifferenceWithDuplicateValuesPreservesTheOriginalKeys PHP Method

testThatDifferenceWithDuplicateValuesPreservesTheOriginalKeys() public method

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