mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
17 lines
285 B
PHP
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
|
|
|