public function StaticReflectionParserTest::testClassAnnotationOptimizedParsing in Plug 7
@dataProvider classAnnotationOptimize
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Reflection/ StaticReflectionParserTest.php, line 69
Class
Namespace
Doctrine\Tests\Common\ReflectionCode
public function testClassAnnotationOptimizedParsing($classAnnotationOptimize) {
$testsRoot = substr(__DIR__, 0, -strlen(__NAMESPACE__) - 1);
$paths = array(
'Doctrine\\Tests' => array(
$testsRoot,
),
);
$staticReflectionParser = new StaticReflectionParser('Doctrine\\Tests\\Common\\Reflection\\ExampleAnnotationClass', new Psr0FindFile($paths), $classAnnotationOptimize);
$expectedDocComment = '/**
* @Annotation(
* key = "value"
* )
*/';
$this
->assertEquals($expectedDocComment, $staticReflectionParser
->getDocComment('class'));
}