/** * @dataProvider arraySet1 */ public function testRemoveFirst($array) { $a = new ArrayObject($array); $a->removeFirst(); array_shift($array); $this->assertSame($array, $a->val()); }