/** * 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); } }
/** * */ public function testToArray() { $this->assertEquals(['string1' => 'abc'], Object::toArray($this->_object)); }