Skip to content

Generate Setup / Generate Teardown don't generate any code #3072

Open

Description

@mamazu

The problem

When running the setup And Teardown generators, they don't seem to generate any code for me.

The idea

This might be related to how the tests are structured, the Phpunit TestCase class already brings it's own empty implementation of the setUp method. Removing this will fixes the behaviour of the generator but breaks a lot of tests.

Maybe the generator should only look into the current classes method list or just be an alias to generate an override for the phpunit functions.

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