/** * @expectedException \TheSeer\phpDox\DocBlock\FactoryException * @covers TheSeer\phpDox\DocBlock\Factory::getInstanceFor */ public function testGetInstanceForExpectingFactoryException() { $factory = new Factory(); $factory->getInstanceFor('invalid Parser'); }
/** * @covers TheSeer\phpDox\DocBlock\Factory::getParserInstanceFor * @uses TheSeer\phpDox\DocBlock\GenericParser */ public function testGetParserInstanceForUnknownNameReturnsGenericParser() { $factory = new Factory(); $this->assertInstanceOf('TheSeer\\phpDox\\DocBlock\\GenericParser', $factory->getParserInstanceFor('Unknown Name Parser')); }
public function getInstanceByMap($map, $name, $annotation = null) { return parent::getInstanceByMap($map, $name, $annotation); }