php-src/ext/reflection/tests/012.phpt
2018-10-14 19:44:14 +02:00

17 lines
284 B
PHP

--TEST--
ReflectionClass::getDefaultProperties()
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
class Foo {
public $test = "ok";
}
$class = new ReflectionClass("Foo");
$props = $class->getDefaultProperties();
echo $props["test"];
?>
--EXPECT--
ok