1--TEST--
2Test get_declared_interfaces() function : autoloading of interfaces
3--FILE--
4<?php
5echo "*** Testing get_declared_interfaces() : autoloading of interfaces ***\n";
6
7spl_autoload_register(function ($class_name) {
8    require_once $class_name . '.inc';
9});
10
11echo "\n-- before interface is used --\n";
12var_dump(in_array('AutoInterface', get_declared_interfaces()));
13
14
15echo "\n-- after interface is used --\n";
16class Implementor implements AutoInterface {}
17var_dump(in_array('AutoInterface', get_declared_interfaces()));
18
19echo "\nDONE\n";
20?>
21--EXPECT--
22*** Testing get_declared_interfaces() : autoloading of interfaces ***
23
24-- before interface is used --
25bool(false)
26
27-- after interface is used --
28bool(true)
29
30DONE
31