Gush\Tests\Command\CommandTestCase::setExpectedCommandInput PHP Method

setExpectedCommandInput() protected method

protected setExpectedCommandInput ( Command $command, array | string $input )
$command Symfony\Component\Console\Command\Command
$input array | string
    protected function setExpectedCommandInput(Command $command, $input)
    {
        if (is_array($input)) {
            $input = implode("\n", $input);
        }
        $helper = $command->getHelper('gush_question');
        $helper->setInputStream($this->getInputStream($input));
    }