Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patchwork 2.0 #20

Closed
krodyrobi opened this issue Jan 9, 2017 · 9 comments
Closed

Patchwork 2.0 #20

krodyrobi opened this issue Jan 9, 2017 · 9 comments

Comments

@krodyrobi
Copy link

krodyrobi commented Jan 9, 2017

In this version we are allowed to modify internal functions, which I would need to accomplish my task.
Will you update the dependencies for the project?

PR: #21

@gmazzap
Copy link
Collaborator

gmazzap commented Jan 9, 2017

@krodyrobi Thanks for the contribution.

Being a major version change, I want to better test any issue before merging on master and release.

If I merge it on dev branch, could you use it from there and please report any issue?

@krodyrobi
Copy link
Author

krodyrobi commented Jan 9, 2017

Sure. But could you place it on composer as well, on the dev branch.

@gmazzap
Copy link
Collaborator

gmazzap commented Jan 9, 2017

@krodyrobi Pushed to dev branch.

Of course you can still use Composer, just pull Brain Monkey with "brain/monkey": "dev-dev"

@krodyrobi
Copy link
Author

krodyrobi commented Mar 21, 2017

Sorry for the late reply I got off focus with the project.

Unfortunately I'm not able to get Functions::expect() to work.
ReflectionException: Method Mockery\CompositeExpectation::once() does not exist

And for me this is the most important part, ensuring a call was made.
Can't say for sure where the issue is but I've made a small reproducible example.
failing.tar.gz

It doesn't seem to be related to the new php redefinitions, as both a custom and time functions have the same behaviour.

@krodyrobi
Copy link
Author

To follow up on that,

The expect call triggers Monkey/MockeryBridge.php __call() with the required data,
on Mockery's side Mockery/CompositeExpectation.php __call() never gets called.

@gmazzap
Copy link
Collaborator

gmazzap commented Mar 21, 2017

@krodyrobi don't really have time now to sort this out, will look at this as sson as I can...

@krodyrobi
Copy link
Author

No problem, I'll still look around at least to provide possible insight.

@gmazzap gmazzap reopened this Jun 1, 2017
@gmazzap
Copy link
Collaborator

gmazzap commented Jun 1, 2017

Version 2 seems to work fine with Patchwork 2, and with last changes in dev-version/1 seems to work with Patchwork 2 as well.

Will close this after some more tests next days, then release version 1.5 with Patchwork 2 support.

@gmazzap
Copy link
Collaborator

gmazzap commented Jun 3, 2017

Patchwork 2 is now in use for v1 and v2 series, I can close this.

@gmazzap gmazzap closed this as completed Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants