getMethodAnnotations() public method

{@inheritDoc}
public getMethodAnnotations ( ReflectionMethod $method )
$method ReflectionMethod
Beispiel #1
0
 /**
  * @group performance
  */
 public function testCachedReadPerformanceWithInMemory()
 {
     $reader = new CachedReader(new AnnotationReader(), new ArrayCache());
     $method = $this->getMethod();
     $time = microtime(true);
     for ($i = 0, $c = 500; $i < $c; $i++) {
         $reader->getMethodAnnotations($method);
     }
     $time = microtime(true) - $time;
     $this->printResults('cached reader (in-memory)', $time, $c);
 }