Ejemplo n.º 1
0
 /**
  * @covers Fuel\Common\Arr::flattenAssoc
  * @group Common
  */
 public function testFlattenAssoc()
 {
     $people = array(array("name" => "Jack", "age" => 21), array("name" => "Jill", "age" => 23));
     $expected = array('0:name' => 'Jack', '0:age' => 21, '1:name' => 'Jill', '1:age' => 23);
     $result = Arr::flattenAssoc($people);
     $this->assertEquals($expected, $result);
 }