Example #1
2
 public function testReadFromPath()
 {
     $arr = array("key1" => "val1", "key2" => "val2");
     $this->assertNull($this->stub->readFromPath(null, null));
     $this->assertEquals("val1", $this->stub->readFromPath($arr, "key1"));
 }
 /**
  * Get a specific value or a subtree of values
  *
  * @param string $object_guid The object to get config values of
  * @param string $feature     The configuration key to get
  *
  * @return array|string The configuration value or the subtree
  */
 static function getValue($object_guid, $feature)
 {
     $values = self::getValues($object_guid);
     return CMbArray::readFromPath($values, $feature);
 }