diff options
| author | Sean Finney <seanius@debian.org> | 2009-06-23 22:03:36 +0200 |
|---|---|---|
| committer | Sean Finney <seanius@debian.org> | 2009-06-23 22:03:36 +0200 |
| commit | c785001d106afb1d4eb98c811a1bf2e4e06065bf (patch) | |
| tree | 5bae23cee6270614b53b86eea95a6725d1c30e4e /ext/reflection/tests/ReflectionObject_export_basic2.phpt | |
| parent | cd0b49c72aee33b3e44a9c589fcd93b9e1c7a64f (diff) | |
| download | php-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.phpt | 39 |
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 |
