示例#1
0
 /**
  * @expectedException \TheSeer\phpDox\DocBlock\FactoryException
  * @covers TheSeer\phpDox\DocBlock\Factory::getInstanceFor
  */
 public function testGetInstanceForExpectingFactoryException()
 {
     $factory = new Factory();
     $factory->getInstanceFor('invalid Parser');
 }
示例#2
0
 /**
  * @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'));
 }
示例#3
0
 public function getInstanceByMap($map, $name, $annotation = null)
 {
     return parent::getInstanceByMap($map, $name, $annotation);
 }