Comments (9)
@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?
from brainmonkey.
Sure. But could you place it on composer as well, on the dev
branch.
from brainmonkey.
@krodyrobi Pushed to dev
branch.
Of course you can still use Composer, just pull Brain Monkey with "brain/monkey": "dev-dev"
from brainmonkey.
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.
from brainmonkey.
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.
from brainmonkey.
@krodyrobi don't really have time now to sort this out, will look at this as sson as I can...
from brainmonkey.
No problem, I'll still look around at least to provide possible insight.
from brainmonkey.
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.
from brainmonkey.
Patchwork 2 is now in use for v1 and v2 series, I can close this.
from brainmonkey.
Related Issues (20)
- Release 2.6.1 ? HOT 15
- The file that defines <Namespace::method> was included earlier than Patchwork. This is likely a result of an improper setup; see readme for details. HOT 2
- Add more utilities to stub WordPress functions HOT 3
- Old site? HOT 4
- A never-returning function must not return in ... HOT 10
- Best approach to mock functions after require_once. HOT 2
- Support for PHPUnit 10 HOT 3
- Expects not functioning HOT 2
- How to set expectations for inside anonymous functions HOT 2
- Provide test case classes for PHPUnit HOT 6
- Packagist is serving version 2.5.0 ? HOT 1
- has_filter/has_action return true instead of the hook priority HOT 7
- WP: adding mocks for some miscellaneous functions HOT 1
- Why expect function works unexpectedly? HOT 4
- Mocks for deep arguments in the function doesn't work HOT 5
- Testing w/o class or class instantiation within plugin HOT 2
- Adding Monkey\setUp() and tearDown() fails otherwise passing tests HOT 3
- has_filter doen't work with type hints with namespaces HOT 10
- Correct use of patchwork.json to redefine internal functions? HOT 4
- Docs site not up-to-date HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brainmonkey.