public function testGetOutputFormatterInput()
{
$formatter = new OutputFormatterFactory([$f1 = $this->createNamedFormatter('f1'), $f2 = $this->createNamedFormatter('f2'), $f3 = $this->createNamedFormatter('f3')]);
$input = $this->prophesize(InputInterface::class);
$input->getOptions()->willReturn(['formatter-f1-lalelu' => 'jupp', 'formatter-f3' => '']);
$this->assertEquals('jupp', $formatter->getOutputFormatterInput($f1, $input->reveal())->getOption('lalelu'));
try {
$formatter->getOutputFormatterInput($f2, $input->reveal())->getOption('lalelu');
$this->fail('expected exception');
} catch (\InvalidArgumentException $e) {
}
}