有没有人知道是否有一个assert或类似的东西可以测试是否在被测试的代码中抛出异常?
assert
php phpunit assert exception
assert ×1
exception ×1
php ×1
phpunit ×1