/** * 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; }
public function testAllNewKeys() { $array = $this->getMultiArray(); $jsonObject = new MultiArray($array); $jsonObject->set('test.test2.test3', 'test'); $this->assertEquals('test', $jsonObject->get('test.test2.test3')); }