Skip to content

[FR] Handle removed assertAttribute*() assertions #2

@jrfnl

Description

@jrfnl

A whole slew of `assertAttribute*() assertions were deprecated in PHPUnit 8.0.0 and removed in PHPUnit 9.0.0 without replacement.

The reasoning behind the removal was that it was too easy to test private/protected properties which should be considered implementation details and that those should not be tested directly.

Polyfilling this would require copying most of the removed code from PHPUnit, which I'm hesistant to do.

Refs:

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