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