You are here

protected function CommandTesterTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Tester/CommandTesterTest.php \Symfony\Component\Console\Tests\Tester\CommandTesterTest::setUp()

File

vendor/symfony/console/Tests/Tester/CommandTesterTest.php, line 24

Class

CommandTesterTest

Namespace

Symfony\Component\Console\Tests\Tester

Code

protected function setUp() {
  $this->command = new Command('foo');
  $this->command
    ->addArgument('command');
  $this->command
    ->addArgument('foo');
  $this->command
    ->setCode(function ($input, $output) {
    $output
      ->writeln('foo');
  });
  $this->tester = new CommandTester($this->command);
  $this->tester
    ->execute(array(
    'foo' => 'bar',
  ), array(
    'interactive' => false,
    'decorated' => false,
    'verbosity' => Output::VERBOSITY_VERBOSE,
  ));
}