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