/** * @covers Fuel\Common\Arr::reIndex * @group Common */ public function testReIndex() { $input = array(2 => 2, 'three' => 3, 5 => array(2 => 2, 'three' => 3, 5 => 5), 7 => 7); $expected = array('0' => 2, 'three' => 3, '1' => array('0' => 2, 'three' => 3, '1' => 5), '2' => 7); $this->assertEquals($expected, Arr::reIndex($input)); }