public function testSetPermissionsChmod()
 {
     $this->process->expects($this->atLeastOnce())->method('isSuccessful')->will($this->returnValue(true));
     $this->process->expects($this->any())->method('setCommandLine')->with($this->callback(function ($argument) {
         return in_array($argument, [PermissionsHandler::PS_AUX, str_replace([PermissionsHandler::VAR_USER, PermissionsHandler::VAR_PATH], [PermissionsHandler::USER, $this->directory], PermissionsHandler::CHMOD)]);
     }));
     $this->process->expects($this->exactly(3))->method('setCommandLine');
     $this->process->expects($this->atLeastOnce())->method('getOutput')->will($this->returnValue(PermissionsHandler::USER));
     $this->handler->setPermissionsChmod($this->directory);
 }