Skip to content

php_unit_method_casing is renaming private methods #357

Open
@jasonmccreary

Description

@jasonmccreary

Pint Version

1.21.0

PHP Version

8.2.4

Description

The php_unit_method_casing is renaming private methods.

Unless this rule is going to refactor the calls to the methods it renames, it should only apply to public methods (actual test cases in PHPUnit). Any other method visibility should not have it's name changed.

Image

Steps To Reproduce

  • Create a private method using camelCase in your test cases
  • Run pint

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