--TEST--
Test bindec() function : error conditions - incorrect input
--FILE--
<?php
echo "*** Testing bindec() : error conditions ***\n";
class classA
{
}
echo "Incorrect number of arguments\n";
bindec();
bindec('01010101111',true);
echo "Incorrect input\n";
bindec(new classA());
?>
--EXPECTF--
*** Testing bindec() : error conditions ***
Incorrect number of arguments
Warning: bindec() expects exactly 1 parameter, 0 given in %s on line %d
Warning: bindec() expects exactly 1 parameter, 2 given in %s on line %d
Incorrect input
Catchable fatal error: Object of class classA could not be converted to string in %s on line %d