1--TEST-- 2trigger_error() tests 3--FILE-- 4<?php 5 6var_dump(trigger_error()); 7var_dump(trigger_error("error")); 8var_dump(trigger_error(array())); 9var_dump(trigger_error("error", -1)); 10var_dump(trigger_error("error", 0)); 11var_dump(trigger_error("error", E_USER_WARNING)); 12var_dump(trigger_error("error", E_USER_DEPRECATED)); 13 14echo "Done\n"; 15?> 16--EXPECTF-- 17Warning: trigger_error() expects at least 1 parameter, 0 given in %s on line %d 18NULL 19 20Notice: error in %s on line %d 21bool(true) 22 23Warning: trigger_error() expects parameter 1 to be string, array given in %s on line %d 24NULL 25 26Warning: Invalid error type specified in %s on line %d 27bool(false) 28 29Warning: Invalid error type specified in %s on line %d 30bool(false) 31 32Warning: error in %s on line %d 33bool(true) 34 35Deprecated: error in %s on line %d 36bool(true) 37Done 38