/** * @covers Fuel\Common\Arr::insertBeforeKey * @expectedException \InvalidArgumentException * @group Common */ public function testInsertBeforeKeyException() { $character = array("name" => "Jack", "surname" => "Reacher"); Arr::insertBeforeKey($character, array("initial" => "P."), "non-existing-key"); }