Skip to content

Overwriting of PHPUnit TestCase properties  #26

@cHeeSaW

Description

@cHeeSaW

Describe the bug
When the tested class has parameters in the constructor which are named like properties of the PHPUnit TestCase class, these would be overwritten after using quickmock

To Reproduce
Steps to reproduce the behavior:

  1. Create a class with a contructor parameter called data
  2. Create a test for this class
  3. Use quickmock
  4. See error

Expected behavior
Maybe detection if TestCase already reservers a name and rename the generated property

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions