A bit late, but this is a guaranteed natural fatal error:
Call the undefined function, for example:
noSuchFunction();
Or if you want this to be executed when you are only in test mode, and then put it in eval
if($isTestMode==1){ eval("noSuchFunction();"); }
Edit: with the trigger_error () function, the problem is that if you use set_error_handler (), it ceases to be fatal - your error handler will decide what to do with it.
source share