php-src/ext/reflection/tests/ReflectionObject___toString_basic1.phpt
Nikita Popov 184fdac7c2 Remove <default> prefix from reflection dump
This really doesn't add anything, and only makes for confusing
terminology. Only marking properties as dynamic is sufficient.
2020-04-02 11:25:41 +02:00

37 lines
456 B
PHP

--TEST--
ReflectionObject::__toString() : very basic test with no dynamic properties
--FILE--
<?php
class Foo {
public $bar = 1;
}
$f = new foo;
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 [ public $bar = 1 ]
}
- Dynamic properties [0] {
}
- Methods [0] {
}
}