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