setMethodAnnotations() protected method

protected setMethodAnnotations ( annotations\extractor $extractor, &$methodName )
$extractor annotations\extractor
コード例 #1
0
ファイル: test.php プロジェクト: atoum/phpunit-extension
 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;
 }