Skip to content

Fails to Detect Test Methods When Using PHP 8.4 Property Hooks in Anonymous Classes #336

@maxiaozhi

Description

@maxiaozhi

The PHPUnit Test Explorer extension fails to recognize test methods when anonymous classes within test files utilize PHP 8.4's property hooks feature. Test methods are not detected or displayed in the test explorer, though functional tests work correctly.

Steps to Reproduce:
Create a test file with an anonymous class using PHP 8.4 property hooks
The test explorer does not detect any test methods
Removing the property hooks functionality restores normal detection

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