Skip to content

build(bridge-double): support Double 0.8.0 - #332

Open
roxblnfk wants to merge 1 commit into
1.xfrom
chore/double-0.8.0
Open

build(bridge-double): support Double 0.8.0#332
roxblnfk wants to merge 1 commit into
1.xfrom
chore/double-0.8.0

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Sep 11, 2026

Copy link
Copy Markdown
Member

🔍 What was changed

  • Bumped jasonmccreary/double to ^0.8 in the Double bridge.
  • Added acceptance scenarios for the four new 0.8.0 behaviours, driven through the auto-verifying DoublePlugin:
    • Argument::all() — joint matching over the whole argument list;
    • Double::for(..., override: true) — doubling a target whose real method name collides with a Double control verb, driven via the returned OverriddenDouble and its instance();
    • passthru self-calls now reaching a stub (a real body's $this->x() re-enters the double);
    • a cloned double keeping its original's expectation state instead of throwing.
  • Added the Adder, Permissions and Greeter fixtures those scenarios need.

Why?

Double 0.8.0 shipped Argument::all(), the override escape hatch for reserved-name collisions, self-call-aware passthru and working clones. The bridge's own surface needs no change — 0.8.0 keeps every method the interceptor relies on — so this is the version bump plus tests that pin the new behaviours through the bridge.

Checklist

  • How was this tested:
    • Unit tests added
  • Full Double bridge suite green locally: Acceptance 7/7, all suites 27 tests / 59 assertions.

test(bridge-double): cover 0.8.0 argument-all, override, passthru self-call and clone

The bridge's own surface is untouched: 0.8.0 keeps every method the interceptor relies on (enableAutoVerify/verifyAll/listen/pauseAutoVerify/resumeAutoVerify, CheckEvent), so the upgrade is just the version constraint.

Acceptance scenarios lock in the four new user-facing behaviours through the auto-verifying plugin: Argument::all() joint matching, Double::for(override: true) for reserved-name collisions, passthru self-calls reaching a stub, and a cloned double sharing its original's state.

Assisted-By: Claude Opus 4.8 <noreply@anthropic.com>
@roxblnfk
roxblnfk requested a review from a team as a code owner September 11, 2026 19:20
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant