Skip to content

v0.2.0

Latest

Choose a tag to compare

@niden niden released this 28 Jun 02:51
2239695

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.

Removed