ReflectionClass_getReflectionConstant.phpt 370 B

12345678910111213
  1. --TEST--
  2. Test ReflectionClass::getReflectionConstant method
  3. --CREDITS--
  4. Gabriel Caruso (carusogabriel34@gmail.com)
  5. --FILE--
  6. <?php
  7. $refleClass = new ReflectionClass(ReflectionClass::class);
  8. var_dump(gettype($refleClass->getReflectionConstant('IS_IMPLICIT_ABSTRACT')));
  9. var_dump($refleClass->getReflectionConstant('FOO_BAR'));
  10. ?>
  11. --EXPECT--
  12. string(6) "object"
  13. bool(false)