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