Matthias\SymfonyConsoleForm\Tests\Helper\ApplicationTester::putToInputStream PHP Метод

putToInputStream() публичный Метод

public putToInputStream ( string $input )
$input string
    public function putToInputStream($input)
    {
        fputs($this->getInputStream(), $input);
    }

Usage Example

Пример #1
0
 private function runCommandWithInteractiveInput($name, $input)
 {
     $input = str_replace('[enter]', "\n", $input);
     $this->tester->putToInputStream($input);
     $this->tester->run($name, array('interactive' => true, 'decorated' => false));
 }