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

testImportedUse() public method

It should use imported annotations when configured to do so.
public testImportedUse ( )
    public function testImportedUse()
    {
        $reflection = new ReflectionClass();
        $reflection->class = 'Test';
        $reflection->path = __DIR__ . '/classes/Test.php';
        $reflectionMethod = new ReflectionMethod();
        $reflectionMethod->reflectionClass = $reflection;
        $reflectionMethod->comment = <<<'EOT'
/**
 * @PhpBench\Subject()
 * @PhpBench\Iterations(10)
 */
EOT;
        $annotations = $this->createReader(true)->getMethodAnnotations($reflectionMethod);
        $this->assertCount(2, $annotations);
    }