/** * Tests Mysqldump::getCommandLine */ public function testTables() { $path = realpath(__DIR__ . '/../../../_files/bin'); $mysqldump = new Mysqldump($path); $mysqldump->dumpTables(array('foo', 'bar')); $cmd = $mysqldump->getCommandLine(); $this->assertEquals($path . '/mysqldump --tables \'foo\' \'bar\' 2> /dev/null', $cmd); }