ReflectionObject_isInternal_basic.phpt 526 B

1234567891011121314151617181920212223
  1. --TEST--
  2. ReflectionObject::isInternal() - basic function test
  3. --FILE--
  4. <?php
  5. class C {
  6. }
  7. $r1 = new ReflectionObject(new stdClass);
  8. $r2 = new ReflectionObject(new ReflectionClass('C'));
  9. $r3 = new ReflectionObject(new ReflectionProperty('Exception', 'message'));
  10. $r4 = new ReflectionObject(new Exception);
  11. $r5 = new ReflectionObject(new C);
  12. var_dump($r1->isInternal(), $r2->isInternal(), $r3->isInternal(),
  13. $r4->isInternal(), $r5->isInternal());
  14. ?>
  15. --EXPECT--
  16. bool(true)
  17. bool(true)
  18. bool(true)
  19. bool(true)
  20. bool(false)