function test_log_record() { $profile =& df_get_record('Profiles', array('id' => 10)); $ht = new Dataface_HistoryTool(); $ht->logRecord($profile); $history =& df_get_record($ht->logTableName('Profiles'), array('id' => 10)); $profile2 = new Dataface_Record('Profiles', $history->vals()); $this->assertEquals($profile->strvals(), $profile2->strvals()); //print_r($history->strvals()); }