Esempio n. 1
0
 /**
  * @covers Fuel\Common\Arr::set
  * @group Common
  */
 public function testSetWithDotkey()
 {
     $array = array();
     $key = 'first.second.third';
     $value = 'test';
     Arr::set($array, $key, $value);
     $this->assertArrayHasKey('third', $array['first']['second']);
 }
Esempio n. 2
0
 /**
  * @param string     $key
  * @param null|mixed $value
  *
  * @return $this
  *
  * @since 2.0
  */
 public function setMeta($key, $value = null)
 {
     Arr::set($this->metaContainer, $key, $value);
     return $this;
 }