1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/reflection/tests/ReflectionConstant_getAttributes_empty.phpt

25 lines
499 B
PHP

--TEST--
ReflectionConstant::getAttributes() when there are none
--FILE--
<?php
$reflectionConstant = new ReflectionConstant('E_ERROR');
var_dump($reflectionConstant->getAttributes());
define('RT_CONST', 42);
$reflectionConstant = new ReflectionConstant('RT_CONST');
var_dump($reflectionConstant->getAttributes());
const CT_CONST = 43;
$reflectionConstant = new ReflectionConstant('CT_CONST');
var_dump($reflectionConstant->getAttributes());
?>
--EXPECT--
array(0) {
}
array(0) {
}
array(0) {
}