Skip to main content
Removed meta content.
Source Link
user212218
user212218

Does anyone know whether there is an assert or something like that which can test whether an exceptionexception was thrown in the code being tested?

Thank you in advance.

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?

Thank you in advance.

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?

Source Link
Felipe
  • 11.8k
  • 8
  • 59
  • 106

PHPUnit assert that an exception was thrown?

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?

Thank you in advance.