2008-02-06 08:44:24 +00:00
|
|
|
--TEST--
|
2009-01-08 21:20:11 +00:00
|
|
|
Test decoct() - error conditions
|
2008-02-06 08:44:24 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2009-01-08 21:20:11 +00:00
|
|
|
/* 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:44:24 +00:00
|
|
|
decoct();
|
|
|
|
decoct(23,2,true);
|
2009-01-08 21:20:11 +00:00
|
|
|
|
2008-02-06 08:44:24 +00:00
|
|
|
?>
|
2009-01-08 21:20:11 +00:00
|
|
|
===Done===
|
2008-02-06 08:44:24 +00:00
|
|
|
--EXPECTF--
|
2009-01-08 21:20:11 +00:00
|
|
|
*** Testing decoct() : error conditions ***
|
|
|
|
Incorrect number of arguments
|
|
|
|
|
2008-02-21 17:47:33 +00:00
|
|
|
Warning: decoct() expects exactly 1 parameter, 0 given in %s on line %d
|
2008-02-06 08:44:24 +00:00
|
|
|
|
2008-02-21 17:47:33 +00:00
|
|
|
Warning: decoct() expects exactly 1 parameter, 3 given in %s on line %d
|
2009-01-08 21:20:11 +00:00
|
|
|
===Done===
|