public function backupdbAction() { $db = SystemUtil::backupdb(); $downloadFile = '/files/tmp/' . basename($db); return $this->createJsonResponse(array('status' => 'ok', 'result' => $downloadFile)); }
public function testBackupdb() { $testTarget = SystemUtil::backupdb(); $this->assertFileExists($testTarget); }