Example #1
0
 public function testRsyncWithCompareDest()
 {
     $rsync = new Rsync();
     $rsync->setCompareDest('/Path/To/File');
     $expected = "/usr/bin/rsync -La --compare-dest '/Path/To/File' /origin /target";
     $actual = $rsync->getCommand('/origin', '/target')->getCommand();
     $this->assertEquals($expected, $actual);
 }