コード例 #1
0
ファイル: deployTest.php プロジェクト: ricfrank/Phync
 function testCanBuildCommand()
 {
     $option = "-aCvz ";
     $source = "pippo/pluto";
     $destination = "pippo@www.ciccio.com:/var/www/pluto/";
     $deploy = new Deploy();
     $deploy->setOption("-aCvz ");
     $deploy->setSource($source);
     $deploy->setDestination($destination);
     try {
         $actualCommand = $deploy->buildCommand();
         $this->assertContains("'pippo@www.ciccio.com:/var/www/pluto/", $actualCommand);
         $this->assertContains("rsync -aCvz  'pippo/pluto'", $actualCommand);
     } catch (BuildException $e) {
         echo $e->getMessage;
     }
 }