Altax\Module\Task\Resource\RuntimeTask::getOutput PHP Method

getOutput() public method

public getOutput ( )
    public function getOutput()
    {
        return $this->output;
    }

Usage Example

Example #1
0
 public function testSetAndGetOutput()
 {
     $runtimeTask = new RuntimeTask(null, $this->definedTask, $this->input, $this->output);
     $this->assertSame($this->output, $runtimeTask->getOutput());
     $output = new BufferedOutput();
     $runtimeTask->setOutput($output);
     $this->assertSame($output, $runtimeTask->getOutput());
     $this->assertNotSame($this->output, $runtimeTask->getOutput());
 }