/**
* @group legacy
*/
public function testEnableAnnotationMappingWithDefaultDoctrineAnnotationReader() { $this->
expectDeprecation('Since symfony/validator 6.4: Method "Symfony\Component\Validator\ValidatorBuilder::enableAnnotationMapping()" is deprecated, use "enableAttributeMapping()" instead.'
);
$this->
assertSame($this->builder,
$this->builder->
enableAnnotationMapping());
$this->
expectDeprecation('Since symfony/validator 6.4: Method "Symfony\Component\Validator\ValidatorBuilder::addDefaultDoctrineAnnotationReader()" is deprecated without replacement.'
);
$this->
assertSame($this->builder,
$this->builder->
addDefaultDoctrineAnnotationReader());
$loaders =
$this->builder->
getLoaders();
$this->
assertCount(1,
$loaders);
$this->
assertInstanceOf(AnnotationLoader::
class,
$loaders[0
]);
$r =
new \
ReflectionProperty(AnnotationLoader::
class, 'reader'
);
$this->
assertInstanceOf(PsrCachedReader::
class,
$r->
getValue($loaders[0
]));
} /**
* @group legacy
*/