summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionObject_export_basic2.phpt
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2009-06-23 22:03:36 +0200
committerSean Finney <seanius@debian.org>2009-06-23 22:03:36 +0200
commitc785001d106afb1d4eb98c811a1bf2e4e06065bf (patch)
tree5bae23cee6270614b53b86eea95a6725d1c30e4e /ext/reflection/tests/ReflectionObject_export_basic2.phpt
parentcd0b49c72aee33b3e44a9c589fcd93b9e1c7a64f (diff)
downloadphp-c785001d106afb1d4eb98c811a1bf2e4e06065bf.tar.gz
Imported Upstream version 5.2.10.dfsg.1upstream/5.2.10.dfsg.1
Diffstat (limited to 'ext/reflection/tests/ReflectionObject_export_basic2.phpt')
-rw-r--r--ext/reflection/tests/ReflectionObject_export_basic2.phpt39
1 files changed, 39 insertions, 0 deletions
diff --git a/ext/reflection/tests/ReflectionObject_export_basic2.phpt b/ext/reflection/tests/ReflectionObject_export_basic2.phpt
new file mode 100644
index 000000000..277f06eaf
--- /dev/null
+++ b/ext/reflection/tests/ReflectionObject_export_basic2.phpt
@@ -0,0 +1,39 @@
+--TEST--
+ReflectionObject::export() : very basic test with dynamic properties
+--FILE--
+<?php
+
+class Foo {
+ public $bar = 1;
+}
+$f = new foo;
+$f->dynProp = 'hello';
+$f->dynProp2 = 'hello again';
+ReflectionObject::export($f);
+
+?>
+--EXPECTF--
+Object of class [ <user> class Foo ] {
+ @@ %s 3-5
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [1] {
+ Property [ <default> public $bar ]
+ }
+
+ - Dynamic properties [2] {
+ Property [ <dynamic> public $dynProp ]
+ Property [ <dynamic> public $dynProp2 ]
+ }
+
+ - Methods [0] {
+ }
+} \ No newline at end of file