/** * @covers Fuel\Common\Arr::removePrefixed * @group Common */ public function testRemovePrefixed() { $input = array("user_name" => "John", "user_surname" => "Lastname", "project_name" => "Fuel", "project_type" => "Framework"); $expected = array('user_name' => 'John', 'user_surname' => 'Lastname'); $result = Arr::removePrefixed($input, "project"); $this->assertEquals($expected, $result); }