Skip to content

A failed assertion is never the expected throw (0.9.2) - #55

Merged
rasuvaeff merged 1 commit into
masterfrom
fix/54-throws-swallows-assert
Sep 19, 2026
Merged

rasuvaeff merged 1 commit into
masterfrom
fix/54-throws-swallows-assert

Conversation

@rasuvaeff

Copy link
Copy Markdown
Owner

Fixes #54. The framework's assertion failure is an ordinary exception (Testo: \LogicException; PHPUnit: \RuntimeException through PHPUnit\Framework\Exception), so a wide expected class matched it and the property passed on a falsified body — T-1 on the new knob, reproduced in both adapters. Two halves: the class is refused when the property is set up (a failed assertion is an instance of it), and the executor never takes an assertion failure for the expected throw whatever class was named. Docs in README ×2, llms.txt; CHANGELOG 0.9.2.

composer build   PASS
composer rector  PASS
package-audit    0 errors

… it is an instance of (#54)

The framework's assertion failure is an ordinary exception, so a wide
expected class matched it and a property passed on a falsified body — T-1
on the new knob. The class is refused when the property is set up, naming
why, and the executor never takes an assertion failure for the expected
throw whatever class was named.
@coderabbitai

coderabbitai Bot commented Sep 19, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: e26e32b3-54f7-4c86-9902-e0865f84c621


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rasuvaeff
rasuvaeff merged commit 385b0a3 into master Sep 19, 2026
12 checks passed
@rasuvaeff
rasuvaeff deleted the fix/54-throws-swallows-assert branch September 19, 2026 16:58
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.

A wide throws class swallows a failed assertion: the property passes on a falsified body

1 participant