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()); }