Example #1
0
 /** @ignore */
 public static function __test()
 {
     $c = new ReflectionClass(get_class());
     $doc = new self($c->getDocComment());
     assert($doc->getAttribute('package') == 'ab');
     assert($doc->getAttribute('subpackage') == 'reflection');
     assert($doc->getAttribute('author') == 'Rasmus Andersson  http://hunch.se/');
     assert($doc->getDescription());
     assert($doc->getBriefDescription());
     assert(is_array($doc->getAttributeNames()));
     assert(is_array($doc->getAttributes()));
     assert(is_array($doc->getAttributes('package')));
 }