/** * @test * @dataProvider popExamples */ public function popWorks($array, $expected) { $helper = new ArrayHelper(); $poppedArray = $helper->pop($array); $this->assertEquals($expected, $poppedArray); }