src/BotManager.php
private function handleOutput(string $output): self
    {
        $this->output .= $output;

        if (!self::inTest()) {
            echo $output;
        }

        return $this;
    }
private function handleOutput(string $output): self
    {
        $this->output .= $output;

        if (!self::inTest()) {
            echo $output;
        }

        return $this;
    }
private function handleOutput ( string $ output ) : self { $ this -> output .= $ output ; if ( ! self :: inTest ( ) ) { echo $ output ; } return $ this ; }
Save the test output and echo it if we're not in a test.

@param string $output

@return \TelegramBot\TelegramBotManager\BotManager
Save the test output and echo it if we re not in a test .