diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-02-12 15:26:26 -0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-02-22 13:18:52 +0100 |
commit | 0c0a5df111d16b6aa16345c701ceae650c2bf2c0 (patch) | |
tree | c4f04118e4d42ebd54eb240900c0c85025ac368b | |
parent | e1cc4863d91c08328ee18b25ba8cf7d85f551e89 (diff) | |
download | php-git-0c0a5df111d16b6aa16345c701ceae650c2bf2c0.tar.gz |
Test ReflectionClass::getReflectionConstant method
-rw-r--r-- | ext/reflection/tests/ReflectionClass_getReflectionConstant.phpt | 13 |
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) |