You are here

public function ApplicationTest::testGetDefaultInputDefinitionReturnsDefaultValues in Zircon Profile 8

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

File

vendor/symfony/console/Tests/ApplicationTest.php, line 810

Class

ApplicationTest

Namespace

Symfony\Component\Console\Tests

Code

public function testGetDefaultInputDefinitionReturnsDefaultValues() {
  $application = new Application();
  $application
    ->setAutoExit(false);
  $application
    ->setCatchExceptions(false);
  $inputDefinition = $application
    ->getDefinition();
  $this
    ->assertTrue($inputDefinition
    ->hasArgument('command'));
  $this
    ->assertTrue($inputDefinition
    ->hasOption('help'));
  $this
    ->assertTrue($inputDefinition
    ->hasOption('quiet'));
  $this
    ->assertTrue($inputDefinition
    ->hasOption('verbose'));
  $this
    ->assertTrue($inputDefinition
    ->hasOption('version'));
  $this
    ->assertTrue($inputDefinition
    ->hasOption('ansi'));
  $this
    ->assertTrue($inputDefinition
    ->hasOption('no-ansi'));
  $this
    ->assertTrue($inputDefinition
    ->hasOption('no-interaction'));
}