示例#1
0
 /**
  * Replace object markers
  *
  * @param string $key   The key
  * @param object $value The object
  *
  * @return void
  */
 private function replaceObject($key, $value)
 {
     $array = Object::toArray($value);
     foreach ($array as $_key => $_value) {
         $this->replaceString($key . '.' . $_key, $_value);
     }
 }
示例#2
0
 /**
  *
  */
 public function testToArray()
 {
     $this->assertEquals(['string1' => 'abc'], Object::toArray($this->_object));
 }