public function first(array $array) { return reset($array); }
/** * @test * @dataProvider firstExamples */ public function firstWorks($array, $expected) { $helper = new ArrayHelper(); $result = $helper->first($array); $this->assertEquals($expected, $result); }