コード例 #1
0
ファイル: RsyncTest.php プロジェクト: no2key/rsync-lib
 public function testRsyncWithTimes()
 {
     $rsync = new Rsync();
     $rsync->setTimes(true);
     $expected = "/usr/bin/rsync -La --times /origin /target";
     $actual = $rsync->getCommand('/origin', '/target')->getCommand();
     $this->assertEquals($expected, $actual);
 }
コード例 #2
0
ファイル: RsyncTest.php プロジェクト: albertofem/rsync-lib
 public function testRsyncWithRemoveSourceFile()
 {
     $rsync = new Rsync();
     $rsync->setRemoveSource(true);
     $expected = "/usr/bin/rsync -La --remove-source-files /origin /target";
     $actual = $rsync->getCommand('/origin', '/target')->getCommand();
     $this->assertEquals($expected, $actual);
 }
コード例 #3
0
ファイル: RsyncTest.php プロジェクト: k795xo/rsync-lib
 public function testRsyncWithOptionalParametersString()
 {
     $rsync = new Rsync();
     $rsync->setOptionalParameters('zp');
     $expected = "/usr/bin/rsync -Lzpa /origin /target";
     $actual = $rsync->getCommand('/origin', '/target')->getCommand();
 }