setTimeTo = '2024-01-01 12:00:15'; $buffer = new BufferedOutput(); $output = new PolyOutput(PolyOutput::FORMAT_ANSI, wrappedOutput: $buffer); $input = new ArrayInput([]); $input->setInteractive(false); $task->run($input, $output); $this->assertSame("Running task 'my title'\nThis output is coming from a build task\n\nTask 'my title' completed successfully in 15 seconds\n", $buffer->fetch()); } }