public function flip(array $array)
{
return array_flip($array);
}
/** * @test * @dataProvider flipExamples */ public function flipWorks($array, $expected) { $helper = new ArrayHelper(); $result = $helper->flip($array); $this->assertEquals($expected, $result); }