Test ReflectionClass::getReflectionConstant method

This commit is contained in:
Gabriel Caruso 2018-02-12 15:26:26 -02:00 committed by Christoph M. Becker
parent e1cc4863d9
commit 0c0a5df111

View File

@ -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)