Altax\Module\Task\Process\Process::getRuntimeTask PHP Méthode

getRuntimeTask() public méthode

public getRuntimeTask ( )
    public function getRuntimeTask()
    {
        return $this->runtimeTask;
    }

Usage Example

Exemple #1
0
 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);
 }