You are here

public function CommandTest::testRunNonInteractive in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Command/CommandTest.php \Symfony\Component\Console\Tests\Command\CommandTest::testRunNonInteractive()

File

vendor/symfony/console/Tests/Command/CommandTest.php, line 226

Class

CommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

public function testRunNonInteractive() {
  $tester = new CommandTester(new \TestCommand());
  $tester
    ->execute(array(), array(
    'interactive' => false,
  ));
  $this
    ->assertEquals('execute called' . PHP_EOL, $tester
    ->getDisplay(), '->run() does not call the interact() method if the input is not interactive');
}