8000 PHPUnit deprecates the at() matcher for mock objects · Issue #37780 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
PHPUnit deprecates the at() matcher for mock objects #37780
Closed
@derrabus

Description

@derrabus

Symfony version(s) affected: 3.4, 4.4, 5.1, 5.2

Description
See sebastianbergmann/phpunit#4297.

The Symfony testsuite makes heavy use of the at() matcher to model multiple expected calls to a test double. The PHPUnit project plans to remove that functionality with PHPUnit 10.

How to reproduce
Run the testsuite with PHPUnit 9.3.

Possible Solution

Additional context
When running the 3.4 testsuite with PHPUnit 9.3, about 170 deprecation warnings are logged regarding the planned removal of that functionality: https://travis-ci.org/github/symfony/symfony/jobs/716119378

Related to #37564

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0