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); }