summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionProperty_export_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionProperty_export_basic.phpt')
-rw-r--r--ext/reflection/tests/ReflectionProperty_export_basic.phpt16
1 files changed, 16 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..e77a3b714
--- /dev/null
+++ b/ext/reflection/tests/ReflectionProperty_export_basic.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Test ReflectionProperty::export() usage.
+--FILE--
+<?php
+
+class TestClass {
+ public $proper = 5;
+}
+
+var_dump(ReflectionProperty::export('TestClass', 'proper'));
+
+?>
+--EXPECT--
+Property [ <default> public $proper ]
+
+NULL