Annotation of embedaddon/php/ext/standard/tests/general_functions/set_magic_quotes_runtime_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test set_magic_quotes_runtime() function - error conditions - pass function incorrect arguments
! 3: --FILE--
! 4: <?php
! 5: /* Prototype: bool set_magic_quotes_runtime ( int $new_setting )
! 6: * Description: Sets the current active configuration setting of magic_quotes_runtime
! 7: */
! 8:
! 9: echo "Simple testcase for set_magic_quotes_runtime() - error test\n";
! 10:
! 11: //Note: No error msgs on invalid input; just a return value of FALSE
! 12:
! 13: echo "\n-- Testing set_magic_quotes_runtime() function with less than expected no. of arguments --\n";
! 14: var_dump(set_magic_quotes_runtime());
! 15:
! 16: echo "\n-- Testing set_magic_quotes_runtime() function with more than expected no. of arguments --\n";
! 17: var_dump(set_magic_quotes_runtime(1, true));
! 18:
! 19: ?>
! 20: ===DONE===
! 21: --EXPECTF--
! 22: Simple testcase for set_magic_quotes_runtime() - error test
! 23:
! 24: -- Testing set_magic_quotes_runtime() function with less than expected no. of arguments --
! 25:
! 26: Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
! 27:
! 28: Warning: set_magic_quotes_runtime() expects exactly 1 parameter, 0 given in %s on line %d
! 29: NULL
! 30:
! 31: -- Testing set_magic_quotes_runtime() function with more than expected no. of arguments --
! 32:
! 33: Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
! 34:
! 35: Warning: set_magic_quotes_runtime() expects exactly 1 parameter, 2 given in %s on line %d
! 36: NULL
! 37: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>