push() public method

Allows to push multiple elements at once:: Array.push(array, e1, e2)
public push ( array $array, mixed $element ) : array
$array array
$element mixed
return array The array with the inserted elements
 /**
  * @test
  * @dataProvider pushExamples
  */
 public function pushWorks($array, $element1, $element2, $expected)
 {
     $helper = new ArrayHelper();
     $pushedArray = $helper->push($array, $element1, $element2);
     $this->assertEquals($expected, $pushedArray);
 }