Ejemplo n.º 1
0
 /**
  * @expectedException \LogicException
  * @dataProvider getAddingAlreadySetDefinitionElementData
  */
 public function testAddingAlreadySetDefinitionElementData($def)
 {
     $code = function (InputInterface $input, OutputInterface $output) {
     };
     $application = new Application();
     $application->setAutoExit(false);
     $application->register('foo', $code)->setDefinition(array($def));
     $input = new ArrayInput(array('command' => 'foo'));
     $output = new NullOutput();
     $application->parseCommandLine($input, $output);
 }