mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
39 lines
589 B
PHP
39 lines
589 B
PHP
--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] {
|
|
}
|
|
}
|