public function testA2UA() { $helper = new helper_plugin_data(); $array = array('id' => '1', 'name' => 'tom'); $result = array('table[id]' => '1', 'table[name]' => 'tom'); $this->assertEquals($result, $helper->_a2ua('table', $array)); }