Skip to content

make:smoke-tests should use annotations if phpunit < 10 #25

@tacman

Description

@tacman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions