fixed deprecation notices

This commit is contained in:
Fabien Potencier 2016-11-06 08:27:54 -08:00
parent 38bf11939b
commit a8967ba625
2 changed files with 3 additions and 8 deletions

View File

@ -751,9 +751,7 @@ class QuestionHelperTest extends AbstractQuestionHelperTest
public function testAskThrowsExceptionOnMissingInput()
{
$dialog = new QuestionHelper();
$dialog->setInputStream($this->getInputStream(''));
$dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), new Question('What\'s your name?'));
$dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream('')), $this->createOutputInterface(), new Question('What\'s your name?'));
}
/**
@ -763,7 +761,6 @@ class QuestionHelperTest extends AbstractQuestionHelperTest
public function testAskThrowsExceptionOnMissingInputWithValidator()
{
$dialog = new QuestionHelper();
$dialog->setInputStream($this->getInputStream(''));
$question = new Question('What\'s your name?');
$question->setValidator(function () {
@ -772,7 +769,7 @@ class QuestionHelperTest extends AbstractQuestionHelperTest
}
});
$dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question);
$dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream('')), $this->createOutputInterface(), $question);
}
protected function getInputStream($input)

View File

@ -108,9 +108,7 @@ class SymfonyQuestionHelperTest extends AbstractQuestionHelperTest
public function testAskThrowsExceptionOnMissingInput()
{
$dialog = new SymfonyQuestionHelper();
$dialog->setInputStream($this->getInputStream(''));
$dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), new Question('What\'s your name?'));
$dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream('')), $this->createOutputInterface(), new Question('What\'s your name?'));
}
protected function getInputStream($input)