PhpBench\Tests\Unit\Benchmark\Metadata\AnnotationReaderTest::testLoadMethodMetadata PHP Method

testLoadMethodMetadata() public method

It should read method annotations.
    public function testLoadMethodMetadata()
    {
        $reflection = new ReflectionClass();
        $reflection->class = 'Test';
        $reflectionMethod = new ReflectionMethod();
        $reflectionMethod->reflectionClass = $reflection;
        $reflectionMethod->comment = <<<'EOT'
/**
 * @Subject()
 * @Iterations(10)
 */
EOT;
        $annotations = $this->createReader()->getMethodAnnotations($reflectionMethod);
        $this->assertCount(2, $annotations);
    }