setClassAnnotations() protected method

protected setClassAnnotations ( annotations\extractor $extractor )
$extractor annotations\extractor
示例#1
0
 /**
  * @param atoum\annotations\extractor $extractor
  *
  * @return $this|void
  */
 protected function setClassAnnotations(atoum\annotations\extractor $extractor)
 {
     parent::setClassAnnotations($extractor);
     $test = $this;
     $extractor->setHandler('resetKernel', function ($value) use($test) {
         $test->enableKernelReset(atoum\annotations\extractor::toBoolean($value));
     })->setHandler('noResetKernel', function () use($test) {
         $test->enableKernelReset(false);
     });
 }
示例#2
0
 protected function setClassAnnotations(annotations\extractor $extractor)
 {
     parent::setClassAnnotations($extractor);
     $test = $this;
     $extractor->setHandler('runTestsInSeparateProcesses', function () use($test, &$methodName) {
         $test->setMethodEngine($methodName, 'isolate');
     });
     return $this;
 }