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