Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
add / escape args for paths
Browse files Browse the repository at this point in the history
  • Loading branch information
scasei committed Jan 24, 2016
1 parent 6411f91 commit 4e01402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Database/MySQLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function shouldDumpSpecifiedDatabase()
), '/var/backup/');

$this->assertEquals($mysql1->getCommand(), "mysqldump --host=\"localhost\" --port=\"3306\" --user=\"root\" --password=\"test\" dizbdd > '/var/backup/mysql/dizbdd.sql'");
$this->assertEquals($mysql2->getCommand(), "mysqldump --host=\"somehost\" --port=\"2222\" --user=\"mysql\" --password=\"somepwd\" somebdd > /var/backup/mysql/somebdd.sql");
$this->assertEquals($mysql2->getCommand(), "mysqldump --host=\"somehost\" --port=\"2222\" --user=\"mysql\" --password=\"somepwd\" somebdd > '/var/backup/mysql/somebdd.sql'");

// dump specified database with no auth
$mysql = new MySQLDummy(array(
Expand All @@ -70,7 +70,7 @@ public function shouldDumpSpecifiedDatabase()
),
), '/var/backup/');

$this->assertEquals($mysql->getCommand(), 'mysqldump somebdd > /var/backup/mysql/somebdd.sql');
$this->assertEquals($mysql->getCommand(), 'mysqldump somebdd > \'/var/backup/mysql/somebdd.sql\'');
}

/**
Expand Down

0 comments on commit 4e01402

Please sign in to comment.