]> granicus.if.org Git - php/commitdiff
Test ReflectionClass::getReflectionConstant method
authorGabriel Caruso <carusogabriel34@gmail.com>
Mon, 12 Feb 2018 17:26:26 +0000 (15:26 -0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 22 Feb 2018 12:18:52 +0000 (13:18 +0100)
ext/reflection/tests/ReflectionClass_getReflectionConstant.phpt [new file with mode: 0644]

diff --git a/ext/reflection/tests/ReflectionClass_getReflectionConstant.phpt b/ext/reflection/tests/ReflectionClass_getReflectionConstant.phpt
new file mode 100644 (file)
index 0000000..71fd921
--- /dev/null
@@ -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)