Revert "merged branch jfsimon/issue-6749 (PR #7220)"
This reverts commitf52120bdd3
, reversing changes made to66c2be30d0
.
This commit is contained in:
parent
62baab5b36
commit
4b12118bc2
@ -68,7 +68,6 @@ class ArgvInput extends Input
|
|||||||
protected function setTokens(array $tokens)
|
protected function setTokens(array $tokens)
|
||||||
{
|
{
|
||||||
$this->tokens = $tokens;
|
$this->tokens = $tokens;
|
||||||
$this->parse();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
namespace Symfony\Component\Console\Tests\Input;
|
namespace Symfony\Component\Console\Tests\Input;
|
||||||
|
|
||||||
use Symfony\Component\Console\Input\StringInput;
|
use Symfony\Component\Console\Input\StringInput;
|
||||||
use Symfony\Component\Console\Input\InputDefinition;
|
|
||||||
use Symfony\Component\Console\Input\InputOption;
|
|
||||||
|
|
||||||
class StringInputTest extends \PHPUnit_Framework_TestCase
|
class StringInputTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
@ -29,18 +27,6 @@ class StringInputTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertEquals($tokens, $p->getValue($input), $message);
|
$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()
|
public function getTokenizeData()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
Reference in New Issue
Block a user