1--TEST--
2ReflectionConstant::getName()
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7
8$reflectionConstant = new ReflectionConstant('ZEND_CONSTANT_A');
9var_dump($reflectionConstant->getName());
10
11$reflectionConstant = new ReflectionConstant('ZEND_TEST_DEPRECATED');
12var_dump($reflectionConstant->getName());
13
14define('RT_CONST', 42);
15$reflectionConstant = new ReflectionConstant('RT_CONST');
16var_dump($reflectionConstant->getName());
17
18define('CT_CONST', 43);
19$reflectionConstant = new ReflectionConstant('CT_CONST');
20var_dump($reflectionConstant->getName());
21
22?>
23--EXPECT--
24string(15) "ZEND_CONSTANT_A"
25string(20) "ZEND_TEST_DEPRECATED"
26string(8) "RT_CONST"
27string(8) "CT_CONST"
28