diff --git a/src/Symfony/Component/Console/Tests/ApplicationTest.php b/src/Symfony/Component/Console/Tests/ApplicationTest.php index aaa8cb48f3521..3f769acf224fa 100644 --- a/src/Symfony/Component/Console/Tests/ApplicationTest.php +++ b/src/Symfony/Component/Console/Tests/ApplicationTest.php @@ -623,6 +623,20 @@ public function testVerboseValueNotBreakArguments() $application->run($input, $output); } + public function testVerboseLongValueInArgv() + { + $application = new Application(); + $application->setAutoExit(false); + $application->setCatchExceptions(false); + $application->add(new \FooCommand()); + + $output = new StreamOutput(fopen('php://memory', 'w', false)); + + $input = new ArgvInput(array('cli.php', '--verbose=3', 'foo:bar')); + $application->run($input, $output); + $this->assertEquals(Output::VERBOSITY_VERY_VERBOSE, $output->getVerbosity()); + } + public function testRunReturnsIntegerExitCode() { $exception = new \Exception('', 4);