PhpBench\Tests\Unit\Benchmark\Metadata\Driver\AnnotationDriverTest::testUsefulException PHP Method

testUsefulException() public method

It should throw a helpful exception when an annotation is not recognized.
public testUsefulException ( )
    public function testUsefulException()
    {
        $hierarchy = 'test';
        $reflection = new ReflectionClass();
        $reflection->class = 'TestChild';
        $reflection->comment = <<<'EOT'
    /**
     * @Foobar("foo")
     */
EOT;
        $hierarchy = new ReflectionHierarchy();
        $hierarchy->addReflectionClass($reflection);
        $this->createDriver()->getMetadataForHierarchy($hierarchy);
    }