Tests MapArray::copyValuesToKey() input against expected output.
@dataProvider providerCopyValuesToKey
array $input: The input array for the MapArray::copyValuesToKey() method.
array $expected: The expected output from calling the method.
callable $callable: The optional callable.
Drupal\Component\Utility\MapArray::copyValuesToKey()
Drupal\Tests\Component\Utility\MapArrayTest::providerCopyValuesToKey()
public function testCopyValuesToKey(array $input, array $expected, $callable = NULL) {
$output = MapArray::copyValuesToKeys($input, $callable);
$this
->assertEquals($expected, $output);
}