RSS Amplifier

freek.dev - all blogposts · Aug 12, 2026

`exit()` may silently break your parallel tests

0
Sign in to vote or save

freek.dev

dyrynda.com.au

Michael explains why exit() can make parallel test workers crash without useful diagnostics, and why verbose flags do not help when the process dies outside PHPUnit's control. The fix is simple: throw an exception instead, so the failure is reported normally with a stack trace.

Read more [dyrynda.com.au]

Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.

No spam. Unsubscribe anytime. You can also follow me on X.

"As a Laravel developer, this is the one newsletter I most look forward to. Freek has a talent for distilling packages or techniques down to something immediately useful - one tip can save you hours and even weeks. It's concise and practical and highly relevant."

Found something interesting to share? Submit a link to the community section.

Read the original on freek.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.