public function StaticReflectionParserTest::testClassAnnotationOptimizedParsing in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/StaticReflectionParserTest.php \Doctrine\Tests\Common\Reflection\StaticReflectionParserTest::testClassAnnotationOptimizedParsing()
@dataProvider classAnnotationOptimize
File
- vendor/
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'));
}