php-src/ext/reflection/tests/bug30856.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

19 lines
305 B
PHP

--TEST--
Reflection Bug #30856 (ReflectionClass::getStaticProperties segfaults)
--FILE--
<?php
class bogus {
const C = 'test';
static $a = bogus::C;
}
$class = new ReflectionClass('bogus');
var_dump($class->getStaticProperties());
?>
--EXPECT--
array(1) {
["a"]=>
string(4) "test"
}