Return to closelog_error.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / network |
1.1 misho 1: --TEST-- 2: Test closelog() function : error conditions 3: --FILE-- 4: <?php 5: /* Prototype : bool closelog(void) 6: * Description: Close connection to system logger 7: * Source code: ext/standard/syslog.c 8: * Alias to functions: 9: */ 10: 11: echo "*** Testing closelog() : error conditions ***\n"; 12: 13: // One argument 14: echo "\n-- Testing closelog() function with one argument --\n"; 15: $extra_arg = 10;; 16: var_dump( closelog($extra_arg) ); 17: 18: ?> 19: ===DONE=== 20: --EXPECTF-- 21: *** Testing closelog() : error conditions *** 22: 23: -- Testing closelog() function with one argument -- 24: 25: Warning: closelog() expects exactly 0 parameters, 1 given in %s on line %d 26: NULL 27: ===DONE===