Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Mocking/Cloning #25

Closed
wants to merge 1 commit into from
Closed

Conversation

laszlokorte
Copy link

We had issues when passing an object to a mocked method because the mock objects default behaviour is to clone all passed parameters. We added a feature to give methods which should be absolutely empty (= do not use PHPUnit_Framework_MockObject_Invocation_Object) when mocking an interface.

@laszlokorte
Copy link
Author

@sebastianbergmann any comments?

@sebastianbergmann
Copy link
Owner

Closing because cloning method parameter will be optional soon (hopefully).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants