PageRenderTime 43ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/reflection/tests/ReflectionClass_getInterfaces_002.php

http://github.com/facebook/hiphop-php
PHP | 13 lines | 12 code | 1 blank | 0 comment | 0 complexity | 8d7f9ab500b1cefea71423a8ec7d37db 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. <?php
  2. interface I1 {}
  3. interface I2 {}
  4. interface I3 {}
  5. interface I4 extends I3 {}
  6. interface I5 extends I4 {}
  7. interface I6 extends I5, I1, I2 {}
  8. interface I7 extends I6 {}
  9. $rc = new ReflectionClass('I7');
  10. $interfaces = $rc->getInterfaces();
  11. print_r($interfaces);
  12. ?>