Skip to content

3.0.0

Latest
Compare
Choose a tag to compare
@michalbundyra michalbundyra released this 08 Mar 19:42
8ceb860

What's Changed

  • feat: Do not add a dummy function when functionName is not provided by @michalbundyra in #14
  • Add actual function that can be mocked in PHPUnit 12 by @crocodele in #13

BC Break:

  • MockDelegateFunctionBuilder::build
    • generates now a class, not an abstract class (so also the delegate method is no longer an abstract method)
    • when $functionName argument is provided the generated class contains public method with that name without any parameters
    • hash in the namespace of generated class is created from the provided $functionName and derive arguments (not just derived arguments as before)

New Contributors

Full Changelog: 2.4.0...3.0.0