php-src/ext/reflection/tests/012.phpt
2012-10-10 10:27:49 +08:00

17 lines
285 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