Пример #1
0
 /**
  * Tests Mysqldump::getCommandLine
  */
 public function testIgnoreTables()
 {
     $path = realpath(__DIR__ . '/../../../_files/bin');
     $mysqldump = new Mysqldump($path);
     $mysqldump->ignoreTables(array('foo', 'bar'));
     $cmd = $mysqldump->getCommandLine();
     $this->assertEquals($path . '/mysqldump --all-databases --ignore-table=\'foo\' --ignore-table=\'bar\' 2> /dev/null', $cmd);
 }