import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-class_object / get_parent_class_error_001.php
blob6192584ddc6fa5ce1534cc264e1eb5eb858ebaa5
1 <?php
2 /* Prototype : proto string get_parent_class([mixed object])
3 * Description: Retrieves the parent class name for object or class or current scope.
4 * Source code: Zend/zend_builtin_functions.c
5 * Alias to functions:
6 */
8 echo "*** Testing get_parent_class() : error conditions ***\n";
11 //Test get_parent_class with one more than the expected number of arguments
12 echo "\n-- Testing get_parent_class() function with more than expected no. of arguments --\n";
13 $object = 1;
14 $extra_arg = 10;
15 var_dump( get_parent_class($object, $extra_arg) );
17 echo "Done";