Ejemplo n.º 1
0
 /**
  * @expectedException        \InvalidArgumentException
  * @expectedExceptionMessage The "foo" argument does not exist.
  */
 public function testGetInvalidArgument()
 {
     $input = new ArrayInput(array('name' => 'foo'), new InputDefinition(array(new InputArgument('name'), new InputArgument('bar', InputArgument::OPTIONAL, '', 'default'))));
     $input->getArgument('foo');
 }