コード例 #1
0
ファイル: TestVoiceInfo.php プロジェクト: hidetobara/voices
 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);
 }
コード例 #2
0
ファイル: moveVoice.php プロジェクト: hidetobara/voices
 function updateRecord($info)
 {
     $db = new VoiceInfoDB();
     $info->dst = $this->newPath($info);
     $db->updateInfo($info);
 }