/** * @dataProvider simpleArrayProvider */ public function testPrevious(array $array) { $ma = new ImmutableArray($array); $prev = prev($array); $this->assertTrue($prev === $ma->previous()); }