parse() public method

public parse ( string $element ) : FlagBag
$element string
return Nelmio\Alice\Definition\FlagBag
 /**
  * @expectedException \Nelmio\Alice\Throwable\Exception\FixtureBuilder\Denormalizer\FlagParser\FlagParserNotFoundException
  * @expectedExceptionMessage No suitable flag parser found to handle the element "string to parse".
  */
 public function testThrowsAnExceptionIfNotSuitableParserFound()
 {
     $parser = new FlagParserRegistry([]);
     $parser->parse('string to parse');
 }