use ExpectDeprecationTrait;
/**
* @group legacy
*/
public function testAnnotationReaderAutowiring() { $this->
expectDeprecation('Since symfony/framework-bundle 6.4: Enabling the integration of Doctrine annotations is deprecated. Set the "framework.annotations.enabled" config option to false.'
);
static::
bootKernel(['root_config' => 'no_annotations_cache.yml', 'environment' => 'no_annotations_cache'
]);
$annotationReader = self::
getContainer()->
get('test.autowiring_types.autowired_services'
)->
getAnnotationReader();
$this->
assertInstanceOf(AnnotationReader::
class,
$annotationReader);
} /**
* @group legacy
*/
public function testCachedAnnotationReaderAutowiring() { $this->
expectDeprecation('Since symfony/framework-bundle 6.4: Enabling the integration of Doctrine annotations is deprecated. Set the "framework.annotations.enabled" config option to false.'
);
static::
bootKernel(['root_config' => 'with_annotations.yml', 'environment' => 'with_annotations'
]);