/hphp/test/quick/autoload6.php
PHP | 15 lines | 13 code | 2 blank | 0 comment | 0 complexity | d81987f812ae52163b4f4841da642e5e MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh
- class C { function __toString() { return 'I'; } }
- <<__EntryPoint>> function main(): void {
- HH\autoload_set_paths(
- dict[
- 'class' => dict[
- 'i' => 'autoload6-2.inc',
- ],
- ],
- __DIR__.'/',
- );
- var_dump(interface_exists(new C));
- }