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