Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 public function testRsyncWithOptionalParametersString()
 {
     $rsync = new Rsync();
     $rsync->setOptionalParameters('zp');
     $expected = "/usr/bin/rsync -Lzpa /origin /target";
     $actual = $rsync->getCommand('/origin', '/target')->getCommand();
 }