php-src/ext/standard/tests/math/decoct_error.phpt

26 lines
566 B
Plaintext
Raw Normal View History

2008-02-06 08:39:23 +00:00
--TEST--
Test decoct() - error conditions
2008-02-06 08:39:23 +00:00
--FILE--
<?php
/* Prototype : string decbin ( int $number )
* Description: Decimal to binary.
* Source code: ext/standard/math.c
*/
echo "*** Testing decoct() : error conditions ***\n";
echo "Incorrect number of arguments\n";
2008-02-06 08:39:23 +00:00
decoct();
decoct(23,2,true);
2008-02-06 08:39:23 +00:00
?>
===Done===
2008-02-06 08:39:23 +00:00
--EXPECTF--
*** Testing decoct() : error conditions ***
Incorrect number of arguments
2008-02-06 08:39:23 +00:00
Warning: decoct() expects exactly 1 parameter, 0 given in %s on line %d
Warning: decoct() expects exactly 1 parameter, 3 given in %s on line %d
===Done===