summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-02-12 15:26:26 -0200
committerChristoph M. Becker <cmbecker69@gmx.de>2018-02-22 13:18:52 +0100
commit0c0a5df111d16b6aa16345c701ceae650c2bf2c0 (patch)
treec4f04118e4d42ebd54eb240900c0c85025ac368b
parente1cc4863d91c08328ee18b25ba8cf7d85f551e89 (diff)
downloadphp-git-0c0a5df111d16b6aa16345c701ceae650c2bf2c0.tar.gz
Test ReflectionClass::getReflectionConstant method
-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)