shift() public method

Note: This differs from the JavaScript behavior of Array.shift which will return the shifted element. An empty array will result in an empty array again.
public shift ( array $array ) : array
$array array
return array The array without the first element
 /**
  * @test
  * @dataProvider shiftExamples
  */
 public function shiftWorks($array, $expected)
 {
     $helper = new ArrayHelper();
     $shiftedArray = $helper->shift($array);
     $this->assertEquals($expected, $shiftedArray);
 }