summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/reflection/tests/ReflectionClass_getReflectionConstant.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/reflection/tests/ReflectionClass_getReflectionConstant.phpt b/ext/reflection/tests/ReflectionClass_getReflectionConstant.phpt
new file mode 100644
index 0000000000..71fd92140f
--- /dev/null
+++ b/ext/reflection/tests/ReflectionClass_getReflectionConstant.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Test ReflectionClass::getReflectionConstant method
+--CREDITS--
+Gabriel Caruso (carusogabriel34@gmail.com)
+--FILE--
+<?php
+$refleClass = new ReflectionClass(ReflectionClass::class);
+var_dump(gettype($refleClass->getReflectionConstant('IS_IMPLICIT_ABSTRACT')));
+var_dump($refleClass->getReflectionConstant('FOO_BAR'));
+?>
+--EXPECT--
+string(6) "object"
+bool(false)