Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32f1904

Browse files
committed
Revert "merged branch jfsimon/issue-6749 (PR #7220)"
This reverts commit f52120b, reversing changes made to 66c2be3.
1 parent 0e7b5fb commit 32f1904

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/Symfony/Component/Console/Input/ArgvInput.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public function __construct(array $argv = null, InputDefinition $definition = nu
6868
protected function setTokens(array $tokens)
6969
{
7070
$this->tokens = $tokens;
71-
$this->parse();
7271
}
7372

7473
/**

src/Symfony/Component/Console/Tests/Input/StringInputTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
namespace Symfony\Component\Console\Tests\Input;
1313

1414
use Symfony\Component\Console\Input\StringInput;
15-
use Symfony\Component\Console\Input\InputDefinition;
16-
use Symfony\Component\Console\Input\InputOption;
1715

1816
class StringInputTest extends \PHPUnit_Framework_TestCase
1917
{
@@ -29,18 +27,6 @@ public function testTokenize($input, $tokens, $message)
2927
$this->assertEquals($tokens, $p->getValue($input), $message);
3028
}
3129

32-
public function testInputOptionWithGivenString()
33-
{
34-
$definition = new InputDefinition(
35-
array(new InputOption('foo', null, InputOption::VALUE_REQUIRED))
36-
);
37-
38-
$input = new StringInput('--foo=bar', $definition);
39-
$actual = $input->getOption('foo');
40-
41-
$this->assertEquals('bar', $actual);
42-
}
43-
4430
public function getTokenizeData()
4531
{
4632
return array(

0 commit comments

Comments
 (0)