Closed unfulvio-godaddy closed 1 year ago
note for reviewers:
as for this moment there are some GitHub issues also reported in https://www.githubstatus.com/ where some PR functions in GH are degraded - I'm pushing commits to this PR and they appear to hold in git (via CLI) but they don't show up in this PR and in the GH workflow - you may be able however to git pull
the changes I have applied
Summary
Adds test coverage for the
Handler
andReturnSequence
classes. These classes were refactored and moved into theWP_Mock/Functions
namespace.Even though these methods are internal, it's a minor API break. However, we are considering to tag v1.0.0 soon so it should be acceptable.
The only change is for devs implementing their own function mocks outside of
WP_Mock::userFunction()
etc. by directly calling\WP_Mock\Functions\Handler::handleFunction(__FUNCTION__, func_get_args());
-- this is documented in the docs.Details
Note: this depends on #216 to be merged first.Contributor checklist
Testing
Reviewer checklist
- [x] Review and merge #216 first - [ ] Code changes review - [ ] Documentation changes review - [ ] Unit tests pass - [ ] Static analysis passes