Skip to content

Backward compatibility with old PHPUnit versions #3543

@filips123

Description

@filips123

My project's dependencies require PHP 5.5 or later, so I want to test my project on PHP 5.5 - 7.3 with PHPUnit.

Until PHPUnit 8, I was able to test it with just requiring PHPUnit 4.8+ which had forward compatibility for namespaced test case syntax as described in my StackOverflow question.

But PHPUnit 8 now has return type declaration which is not compatible with older PHP and PHPUnit versions.

Is there any backward compatibility or another possibility to use the same test case for all PHPUnit (PHP) version?

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