Example #1
0
 public function testRsyncWithCompression()
 {
     $rsync = new Rsync();
     $rsync->setCompression(true);
     $expected = "/usr/bin/rsync -Lza /origin /target";
     $actual = $rsync->getCommand('/origin', '/target')->getCommand();
     $this->assertEquals($expected, $actual);
 }