/** * @expectedException \InvalidArgumentException */ public function testInvalidExecutableLocation() { $rsync = new Rsync(); $rsync->setExecutable("/usr/not/exists/rsync!!"); }