Annotation of embedaddon/php/ext/standard/tests/general_functions/get_defined_constants_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test get_defined_constants() function : error conditions 
        !             3: --FILE--
        !             4: <?php
        !             5: /* Prototype  : array get_defined_constants  ([ bool $categorize  ] )
        !             6:  * Description:  Returns an associative array with the names of all the constants and their values
        !             7:  * Source code: Zend/zend_builtin_functions.c
        !             8:  */    
        !             9: 
        !            10: echo "*** Testing get_defined_constants() : error conditions ***\n";
        !            11: 
        !            12: echo "\n-- Testing get_defined_constants() function with more than expected no. of arguments --\n";
        !            13: $extra_arg = 10;
        !            14: var_dump( get_defined_constants(true, $extra_arg) );
        !            15: 
        !            16: ?>
        !            17: ===DONE===
        !            18: --EXPECTF--
        !            19: *** Testing get_defined_constants() : error conditions ***
        !            20: 
        !            21: -- Testing get_defined_constants() function with more than expected no. of arguments --
        !            22: 
        !            23: Warning: get_defined_constants() expects at most 1 parameter, 2 given in %s on line 11
        !            24: NULL
        !            25: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>