TheSeer\phpDox\DocBlock\Factory::addParserClass
Register a parser by its classname.
Signature
public function addParserClass(string
$annotation,
string
$classname )
Parameters
$annotation
—
string
- Identifier of the parser within the registry.
$classname
—
string
- Name of the class representing the parser.
Test Coverage
Information
- Coverage: 4/4 Lines (100%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\DocBlock\FactoryTest::testAddParserClass
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\DocBlock\FactoryTest::testAddParserClassExpectingFactoryException with data set "wrong annotation type"
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\DocBlock\FactoryTest::testAddParserClassExpectingFactoryException with data set "wrong classname type"