Annotation of embedaddon/php/ext/standard/tests/math/hypot_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test hypot() - wrong params test hypot()
        !             3: --FILE--
        !             4: <?php
        !             5: /* Prototype  : float hypot  ( float $x  , float $y  )
        !             6:  * Description: Calculate the length of the hypotenuse of a right-angle triangle.
        !             7:  * Source code: ext/standard/math.c
        !             8:  */
        !             9:  
        !            10: echo "*** Testing hypot() : error conditions ***\n";
        !            11: 
        !            12: echo "\n-- Testing hypot() function with less than expected no. of arguments --\n";
        !            13: hypot();
        !            14: hypot(36);
        !            15: 
        !            16: echo "\n-- Testing hypot() function with more than expected no. of arguments --\n";
        !            17: hypot(36,25,0);
        !            18: 
        !            19: ?>
        !            20: ===Done===
        !            21: --EXPECTF--
        !            22: *** Testing hypot() : error conditions ***
        !            23: 
        !            24: -- Testing hypot() function with less than expected no. of arguments --
        !            25: 
        !            26: Warning: hypot() expects exactly 2 parameters, 0 given in %s on line %d
        !            27: 
        !            28: Warning: hypot() expects exactly 2 parameters, 1 given in %s on line %d
        !            29: 
        !            30: -- Testing hypot() function with more than expected no. of arguments --
        !            31: 
        !            32: Warning: hypot() expects exactly 2 parameters, 3 given in %s on line %d
        !            33: ===Done===

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