Пример #1
0
 /**
  * Tests Mysqldump::getCommandLine
  */
 public function testLockTables()
 {
     $path = realpath(__DIR__ . '/../../../_files/bin');
     $mysqldump = new Mysqldump($path);
     $mysqldump->lockTables(true);
     $cmd = $mysqldump->getCommandLine();
     $this->assertEquals($path . '/mysqldump --lock-tables --all-databases 2> /dev/null', $cmd);
 }