import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-class_object / get_declared_interfaces_variation1.php
blobc2777465105230fb974b0ff8697b39c6eb959d74
1 <?php
2 /* Prototype : proto array get_declared_interfaces()
3 * Description: Returns an array of all declared interfaces.
4 * Source code: Zend/zend_builtin_functions.c
5 * Alias to functions:
6 */
9 echo "*** Testing get_declared_interfaces() : autoloading of interfaces ***\n";
11 function __autoload($class_name) {
12 require_once $class_name . '.inc';
15 echo "\n-- before interface is used --\n";
16 var_dump(in_array('AutoInterface', get_declared_interfaces()));
19 echo "\n-- after interface is used --\n";
20 class Implementor implements AutoInterface {}
21 var_dump(in_array('AutoInterface', get_declared_interfaces()));
23 echo "\nDONE\n";