PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/quick/autoload6.php

http://github.com/facebook/hiphop-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
  1. <?hh
  2. class C { function __toString() { return 'I'; } }
  3. <<__EntryPoint>> function main(): void {
  4. HH\autoload_set_paths(
  5. dict[
  6. 'class' => dict[
  7. 'i' => 'autoload6-2.inc',
  8. ],
  9. ],
  10. __DIR__.'/',
  11. );
  12. var_dump(interface_exists(new C));
  13. }