Return to assert_error4.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / assert |
1.1 misho 1: --TEST-- 2: assert() - basic - Test recoverable error 3: --INI-- 4: assert.active = 1 5: assert.warning = 1 6: assert.callback = f1 7: assert.quiet_eval = 0 8: assert.bail = 0 9: error_reporting = -1 10: display_errors = 1 11: --FILE-- 12: <?php 13: $sa = "0 $ 0"; 14: var_dump($r2 = assert($sa, "Describing what was asserted")); 15: --EXPECTF-- 16: 17: Parse error: syntax error, unexpected '$' in %s(3) : assert code on line 1 18: 19: Catchable fatal error: assert(): Failure evaluating code: 20: Describing what was asserted:"0 $ 0" in %s on line 3 21: