addParserFactory() public method

Register a parser factory.
public addParserFactory ( string $annotation, TheSeer\phpDox\FactoryInterface | string $factory )
$annotation string Identifier of the parser within the registry.
$factory TheSeer\phpDox\FactoryInterface | string Instance of FactoryInterface to be registered or FQCN of the object to be created.
Esempio n. 1
0
 /**
  * @expectedException \TheSeer\phpDox\DocBlock\FactoryException
  * @covers TheSeer\phpDox\DocBlock\Factory::addParserFactory
  */
 public function testAddParserFactoryExpectingFactoryException()
 {
     $factory = new Factory();
     $factory->addParserFactory(array(), $factory);
 }