/** * @param ParserInterface $parser */ public function addParser(ParserInterface $parser) { $this->parsers[$parser->getFieldName()] = $parser; }
public function testGetFieldName() { $this->assertEquals('staticGraphic1', $this->parser->getFieldName()); }