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