예제 #1
0
파일: ArrTest.php 프로젝트: fuelphp/common
 /**
  * @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");
 }