LMSouq
php-dev Open

PHPUnit assert that an exception was thrown?

FE
Felipe
1 month ago
3 views
Problem Description
Does anyone know whether there is an `assert` or something like that which can test whether an exception was thrown in the code being tested?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base