Exemplo n.º 1
0
 public function testFromProperties()
 {
     $blocs = \Packaged\DocBlock\DocBlockParser::fromProperties(new DocBlockFiller(), ReflectionProperty::IS_PUBLIC);
     $this->assertContainsOnlyInstancesOf('\\Packaged\\DocBlock\\DocBlockParser', $blocs);
     $this->assertCount(2, $blocs);
 }
Exemplo n.º 2
0
 /**
  * @return DocBlockParser[]
  */
 protected static function _getDocBlockProperties()
 {
     if (!isset(self::$_docBlockProperties[get_called_class()])) {
         self::$_docBlockProperties[get_called_class()] = DocBlockParser::fromProperties(get_called_class(), \ReflectionProperty::IS_PUBLIC);
     }
     return self::$_docBlockProperties[get_called_class()];
 }