Skip to content

Attribute class "PHPUnit\Framework\Attributes\Test" not found #5969

Description

@mhsdesign

Note

This is not an issue but a guide to solve the reflection error in the FLOW Testing context

Attribute class "PHPUnit\Framework\Attributes\Test" not found

Neos and Flow 8.4, 9.0, 9.1 were upgraded to use PHPUnit 11 (and upcoming releases will too)

See discuss https://discuss.neos.io/t/funding-request-upgrade-to-phpunit-11-in-flow-neos/7141/14

PRs:
neos/flow-development-collection#3563
#5950

Slack Discussions
https://neos-project.slack.com/archives/C04PYL8H3/p1787117953729039
https://neos-project.slack.com/archives/C050C8FEK/p1787899168805249

Update PHPUnit

To fix the above error you should update PHPUnit in your site-root distribution

"mikey179/vfsstream": "^1.6.12",
"phpunit/phpunit": "~11.5",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions