public function testPutString() { // environment-dependent $destPath = __DIR__ . "/../../../../tmp/Altax/Module/Task/Process/ProcessTest/puttest.txt"; $destLocalPath = __DIR__ . "/../../../../tmp/Altax/Module/Task/Process/ProcessTest/puttest.txt"; @unlink($destLocalPath); $this->runtimeTask->getOutput()->setVerbosity(3); $node = new Node(); $node->setName("127.0.0.1"); $process = new Process($this->runtimeTask, $node); $process->putString($destPath, "putstring contents"); $output = $process->getRuntimeTask()->getOutput()->fetch(); $this->assertEquals("putstring contents", file_get_contents($destLocalPath)); @unlink($destLocalPath); }