Ejemplo n.º 1
0
 /**
  * @covers Fuel\Common\Arr::filterSuffixed
  * @group Common
  */
 public function testFilterSuffixed()
 {
     $input = array("name_1" => "John", "surname_1" => "Lastname", "name_2" => "Ted", "surname_2" => "Surname");
     $expected = array('name' => 'John', 'surname' => 'Lastname');
     $result = Arr::filterSuffixed($input, "_1");
     $this->assertEquals($expected, $result);
 }