Ejemplo n.º 1
0
 /**
  * @covers Fuel\Common\Arr::has
  * @group Common
  */
 public function testHas()
 {
     $array = array('one' => 1, 'two' => array('three' => 'foo'));
     $this->assertTrue(Arr::has($array, 'one'));
     $this->assertTrue(Arr::has($array, 'two.three'));
     $this->assertFalse(Arr::has($array, 'four'));
 }