1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/reflection/tests/022.phpt
2018-10-14 19:44:14 +02:00

15 lines
226 B
PHP

--TEST--
ReflectionClass::getConstant
--FILE--
<?php
class Foo {
const c1 = 1;
}
$class = new ReflectionClass("Foo");
var_dump($class->getConstant("c1"));
var_dump($class->getConstant("c2"));
?>
--EXPECT--
int(1)
bool(false)