setMethodAnnotations() 보호된 메소드

protected setMethodAnnotations ( annotations\extractor $extractor, &$methodName )
$extractor annotations\extractor
예제 #1
0
 protected function setMethodAnnotations(annotations\extractor $extractor, &$methodName)
 {
     parent::setMethodAnnotations($extractor, $methodName);
     $test = $this;
     $tagHandler = function ($value) use($test, &$methodName) {
         $test->setMethodTags($methodName, annotations\extractor::toArray($value));
     };
     $extractor->setHandler('author', $tagHandler)->setHandler('expectedException', function ($value) use($test, &$methodName) {
         if ($value) {
             $test->addUnsupportedMethod($methodName, '@expectedException is not supported.');
         }
     })->setHandler('group', $tagHandler)->setHandler('large', function () use($tagHandler) {
         $tagHandler('large');
     })->setHandler('medium', function () use($tagHandler) {
         $tagHandler('medium');
     })->setHandler('runInSeparateProcess', function () use($test, &$methodName) {
         $test->setMethodEngine($methodName, 'isolate');
     })->setHandler('small', function () use($tagHandler) {
         $tagHandler('small');
     });
     return $this;
 }