diff options
Diffstat (limited to 'ext/reflection/tests/reflectionProperty_export_basic.phpt')
| -rw-r--r-- | ext/reflection/tests/reflectionProperty_export_basic.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/reflection/tests/reflectionProperty_export_basic.phpt b/ext/reflection/tests/reflectionProperty_export_basic.phpt new file mode 100644 index 000000000..331fdb6a2 --- /dev/null +++ b/ext/reflection/tests/reflectionProperty_export_basic.phpt @@ -0,0 +1,18 @@ +--TEST-- +Test ReflectionProperty::export() usage. +--SKIPIF-- +<?php extension_loaded('reflection') or die('skip'); ?> +--FILE-- +<?php + +class TestClass { + public $proper = 5; +} + +var_dump(ReflectionProperty::export('TestClass', 'proper')); + +?> +--EXPECT-- +Property [ <default> public $proper ] + +NULL |
