Revert "merged branch jfsimon/issue-6749 (PR #7220)"
This reverts commitf52120bdd3
, reversing changes made to66c2be30d0
.
This commit is contained in:
parent
0e7b5fb3bb
commit
32f190481a
@ -68,7 +68,6 @@ class ArgvInput extends Input
|
||||
protected function setTokens(array $tokens)
|
||||
{
|
||||
$this->tokens = $tokens;
|
||||
$this->parse();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -12,8 +12,6 @@
|
||||
namespace Symfony\Component\Console\Tests\Input;
|
||||
|
||||
use Symfony\Component\Console\Input\StringInput;
|
||||
use Symfony\Component\Console\Input\InputDefinition;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
|
||||
class StringInputTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
@ -29,18 +27,6 @@ class StringInputTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($tokens, $p->getValue($input), $message);
|
||||
}
|
||||
|
||||
public function testInputOptionWithGivenString()
|
||||
{
|
||||
$definition = new InputDefinition(
|
||||
array(new InputOption('foo', null, InputOption::VALUE_REQUIRED))
|
||||
);
|
||||
|
||||
$input = new StringInput('--foo=bar', $definition);
|
||||
$actual = $input->getOption('foo');
|
||||
|
||||
$this->assertEquals('bar', $actual);
|
||||
}
|
||||
|
||||
public function getTokenizeData()
|
||||
{
|
||||
return array(
|
||||
|
Reference in New Issue
Block a user