put() public method

public put ( $local, $remote )
Example #1
0
 public function testPut2()
 {
     $srcPath = "/NotExistsFile/gettest.txt";
     $destPath = __DIR__ . "/../../../../tmp/Altax/Module/Task/Process/ProcessTest/puttest.txt";
     $this->runtimeTask->getOutput()->setVerbosity(3);
     $node = new Node();
     $node->setName("127.0.0.1");
     $process = new Process($this->runtimeTask, $node);
     try {
         $process->put($srcPath, $destPath);
         $this->assertEquals(false, true);
     } catch (\RuntimeException $e) {
         $this->assertEquals(true, true);
     }
 }