Skip to content

0.2.0#3

Merged
niden merged 8 commits into
masterfrom
development
Jun 28, 2026
Merged

0.2.0#3
niden merged 8 commits into
masterfrom
development

Conversation

@niden

@niden niden commented Jun 28, 2026

Copy link
Copy Markdown
Member

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.

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.

@niden niden self-assigned this Jun 28, 2026
@niden niden added bug Something isn't working enhancement New feature or request labels Jun 28, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Phalcon v6 Jun 28, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Phalcon v5 Jun 28, 2026
@niden niden merged commit 2239695 into master Jun 28, 2026
32 of 33 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Implemented in Phalcon v6 Jun 28, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Implemented in Phalcon v5 Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: Implemented
Status: Implemented

Development

Successfully merging this pull request may close these issues.

1 participant