import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-math / base_convert_error.php
blob8ed88d88cf135df050a8c474e6c3827f92a48ad2
1 <?php
2 /* Prototype : string base_convert ( string $number , int $frombase , int $tobase )
3 * Description: Convert a number between arbitrary bases.
4 * Source code: ext/standard/math.c
5 */
7 echo "*** Testing base_convert() : error conditions ***\n";
9 // get a class
10 class classA
14 echo "Incorrect number of arguments\n";
15 base_convert();
16 base_convert(35);
17 base_convert(35,2);
18 base_convert(1234, 1, 10);
19 base_convert(1234, 10, 37);
21 echo "Incorrect input\n";
22 base_convert(new classA(), 8, 10);