The implementation uses the JavaScript specificiation where applicable, including EcmaScript 6 proposals.
See https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array for a documentation and
specification of the JavaScript implementation.
/** * @test * @dataProvider flipExamples */ public function flipWorks($array, $expected) { $helper = new ArrayHelper(); $result = $helper->flip($array); $this->assertEquals($expected, $result); }