Exemple #1
0
 function testUpdateInfo()
 {
     $info = new VoiceInfo($this->data);
     $infoSub = new VoiceInfo($this->dataSub);
     $store = new VoiceInfoDB();
     $store->updateInfo($infoSub);
     $result = $store->getInfo(999);
     $this->assertSame('c:/temp/998.mp3', $result->dst);
     $store->updateInfo($info);
     $result = $store->getInfo(999);
     $this->assertSame('c:/temp/999.mp3', $result->dst);
     $this->assertSame(999, $result->sizeKb);
 }
Exemple #2
0
 function updateRecord($info)
 {
     $db = new VoiceInfoDB();
     $info->dst = $this->newPath($info);
     $db->updateInfo($info);
 }