PHPUnit 9.5 is ubiquitous -- it's installed by default on with symfony new --webapp. So a lot of projects still use it, and it's tied to simple-phpunit, which inject some Symfony services that I don't quite understand.
So bin/console make:smoke-tests --use-provider should detect that phpunit 9.5 is installed and generate an annotation, and the -a option should throw an error since attributes aren't available.
Alternatively, there could be a different option for annotations, e.g. --annotations
My instinct is to simply update to a later phpunit, but often that breaks too many test on legacy projects.
PHPUnit 9.5 is ubiquitous -- it's installed by default on with symfony new --webapp. So a lot of projects still use it, and it's tied to simple-phpunit, which inject some Symfony services that I don't quite understand.
So bin/console make:smoke-tests --use-provider should detect that phpunit 9.5 is installed and generate an annotation, and the -a option should throw an error since attributes aren't available.
Alternatively, there could be a different option for annotations, e.g. --annotations
My instinct is to simply update to a later phpunit, but often that breaks too many test on legacy projects.