You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Added
AbstractUnitTestCase::mockWithoutConstructor() / mockWithConstructor() - build a test
double with the constructor disabled or invoked (with constructor arguments), keeping the
non-overridden methods real. Method overrides become stubs (a Closure body, a return value,
or null for a type-safe default) and property overrides are set via reflection. Built as a
stub on PHPUnit 12+ (so no "mock object without expectations" notice is raised); works across
PHPUnit 10.5-13.
Fixed
ServicesTrait now skips (instead of erroring) when the backing client is unavailable: the
memcached helpers skip when ext-memcached is not loaded, and the redis helpers skip when the predis/predis package is not installed.