Permalink
Browse files

fixed CS

  • Loading branch information...
1 parent 452df2b commit ed8cb0f43ad61ea29c13c671a2c1d7ee742748d5 @fabpot fabpot committed Oct 4, 2012
Showing with 21 additions and 21 deletions.
  1. +21 −21 Tests/ApplicationTest.php
View
@@ -509,64 +509,64 @@ public function getAddingAlreadySetDefinitionElementData()
array(new InputOption('query', 'q', InputOption::VALUE_NONE)),
);
}
-
+
public function testGetDefaultHelperSetReturnsDefaultValues()
{
$application = new Application();
$application->setAutoExit(false);
$application->setCatchExceptions(false);
-
+
$helperSet = $application->getHelperSet();
-
+
$this->assertTrue($helperSet->has('formatter'));
$this->assertTrue($helperSet->has('dialog'));
$this->assertTrue($helperSet->has('progress'));
}
-
+
public function testAddingSingleHelperSetOverwritesDefaultValues()
{
$application = new Application();
$application->setAutoExit(false);
$application->setCatchExceptions(false);
-
+
$application->setHelperSet(new HelperSet(array(new FormatterHelper())));
-
+
$helperSet = $application->getHelperSet();
-
+
$this->assertTrue($helperSet->has('formatter'));
-
+
// no other default helper set should be returned
$this->assertFalse($helperSet->has('dialog'));
$this->assertFalse($helperSet->has('progress'));
}
-
+
public function testOverwritingDefaultHelperSetOverwritesDefaultValues()
{
$application = new CustomApplication();
$application->setAutoExit(false);
$application->setCatchExceptions(false);
-
+
$application->setHelperSet(new HelperSet(array(new FormatterHelper())));
-
+
$helperSet = $application->getHelperSet();
-
+
$this->assertTrue($helperSet->has('formatter'));
-
+
// no other default helper set should be returned
$this->assertFalse($helperSet->has('dialog'));
$this->assertFalse($helperSet->has('progress'));
}
-
+
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'));
@@ -575,26 +575,26 @@ public function testGetDefaultInputDefinitionReturnsDefaultValues()
$this->assertTrue($inputDefinition->hasOption('no-ansi'));
$this->assertTrue($inputDefinition->hasOption('no-interaction'));
}
-
+
public function testOverwritingDefaultInputDefinitionOverwritesDefaultValues()
{
$application = new CustomApplication();
$application->setAutoExit(false);
$application->setCatchExceptions(false);
-
+
$inputDefinition = $application->getDefinition();
// check wether the default arguments and options are not returned any more
$this->assertFalse($inputDefinition->hasArgument('command'));
-
+
$this->assertFalse($inputDefinition->hasOption('help'));
$this->assertFalse($inputDefinition->hasOption('quiet'));
$this->assertFalse($inputDefinition->hasOption('verbose'));
$this->assertFalse($inputDefinition->hasOption('version'));
$this->assertFalse($inputDefinition->hasOption('ansi'));
$this->assertFalse($inputDefinition->hasOption('no-ansi'));
$this->assertFalse($inputDefinition->hasOption('no-interaction'));
-
+
$this->assertTrue($inputDefinition->hasOption('custom'));
}
}
@@ -610,7 +610,7 @@ protected function getDefaultInputDefinition()
{
return new InputDefinition(array(new InputOption('--custom', '-c', InputOption::VALUE_NONE, 'Set the custom input definition.')));
}
-
+
/**
* Gets the default helper set with the helpers that should always be available.
*

0 comments on commit ed8cb0f

Please sign in to comment.