specifies a function to apply to assertions that fail.
Basic Examples (1)
You can change the behavior when an assertion fails by assigning to $AssertFunction. This function throws an exception when an assertion fails:
Introduced in 2010