php-src/ext/reflection/tests/ReflectionObject_export_basic2.phpt
Nikita Popov 3121b7174f Deprecate Reflection export() methods
And remove the Reflector::export() interface method.
2019-07-22 11:39:52 +02:00

40 lines
595 B
PHP

--TEST--
ReflectionObject::__toString() : very basic test with dynamic properties
--FILE--
<?php
class Foo {
public $bar = 1;
}
$f = new foo;
$f->dynProp = 'hello';
$f->dynProp2 = 'hello again';
echo new ReflectionObject($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] {
}
}