Annotation of embedaddon/php/ext/standard/tests/math/decoct_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test decoct() - error conditions
! 3: --FILE--
! 4: <?php
! 5: /* Prototype : string decbin ( int $number )
! 6: * Description: Decimal to binary.
! 7: * Source code: ext/standard/math.c
! 8: */
! 9:
! 10: echo "*** Testing decoct() : error conditions ***\n";
! 11:
! 12: echo "Incorrect number of arguments\n";
! 13: decoct();
! 14: decoct(23,2,true);
! 15:
! 16: ?>
! 17: ===Done===
! 18: --EXPECTF--
! 19: *** Testing decoct() : error conditions ***
! 20: Incorrect number of arguments
! 21:
! 22: Warning: decoct() expects exactly 1 parameter, 0 given in %s on line %d
! 23:
! 24: Warning: decoct() expects exactly 1 parameter, 3 given in %s on line %d
! 25: ===Done===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>