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