Skip to content

Conversation

@judus
Copy link
Owner

@judus judus commented Oct 16, 2025

No description provided.

@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d0e950f) to head (8cd73f7).
⚠️ Report is 16 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master       #34      +/-   ##
=============================================
+ Coverage     98.71%   100.00%   +1.28%     
- Complexity      411       513     +102     
=============================================
  Files            34        35       +1     
  Lines          1168      1312     +144     
=============================================
+ Hits           1153      1312     +159     
+ Misses           15         0      -15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +165 to +166
$this->expectException(ContainerException::class);
$this->expectExceptionMessage('Resolved interceptor must implement PostResolutionInterceptorInterface.');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Adjust expected message for invalid post interceptor resolution

The assertion expects the thrown message to be exactly Resolved interceptor must implement PostResolutionInterceptorInterface., but ContainerException::fromInterceptor() always prefixes messages with the interceptor class (e.g. [Tests\Unit\Container\Stubs\StubInterceptor] …). This causes the new test to fail even though the code behaves correctly. Include the [$interceptorClass] prefix or assert a substring instead.

Useful? React with 👍 / 👎.

Comment on lines +180 to +181
$this->expectException(ContainerException::class);
$this->expectExceptionMessage('Resolved interceptor must implement PreResolutionInterceptorInterface.');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Adjust expected message for invalid pre interceptor resolution

Similar to the post-interceptor test, the expectation omits the class prefix added by ContainerException::fromInterceptor(). The actual message will be [Tests\Unit\Container\Stubs\StubPreInterceptor] Resolved interceptor must implement PreResolutionInterceptorInterface., so the assertion as written will always fail. Either assert the full prefixed message or relax the check.

Useful? React with 👍 / 👎.

Comment on lines 529 to 531
$this->expectException(ContainerException::class);
$this->expectExceptionMessage('Reflection error: Mocked reflection failure.');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Expected reflection wrapper message omits service ID prefix

ContainerException::fromServiceId() formats messages as Error with service '<id>': …. The new test expects only Reflection error: Mocked reflection failure. so it will fail even though the resolver correctly wraps the ReflectionException. Update the expected message to include the leading Error with service 'serviceWithReflectionFailure': portion or assert a substring instead.

Useful? React with 👍 / 👎.

@judus judus merged commit 3bb606f into master Oct 25, 2025
4 checks passed
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.

2 participants