Beispiel #1
0
 /**
  * Gets the specified text from the list of defined words in the file.
  *
  * @param  string $string
  * @return string
  */
 public function getText($string = '')
 {
     $multiArray = new MultiArray($this->vocabulary);
     $result = $multiArray->get($string);
     return is_string($result) ? $result : $string;
 }
Beispiel #2
0
 public function testAllNewKeys()
 {
     $array = $this->getMultiArray();
     $jsonObject = new MultiArray($array);
     $jsonObject->set('test.test2.test3', 'test');
     $this->assertEquals('test', $jsonObject->get('test.test2.test3'));
 }