xref: /PHP-7.1/ext/reflection/tests/012.phpt (revision 113213f0)
1--TEST--
2ReflectionClass::getDefaultProperties()
3--SKIPIF--
4<?php extension_loaded('reflection') or die('skip'); ?>
5--FILE--
6<?php
7class Foo {
8	public $test = "ok";
9}
10$class = new ReflectionClass("Foo");
11$props = $class->getDefaultProperties();
12echo $props["test"];
13?>
14--EXPECT--
15ok
16