mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
36 lines
458 B
Plaintext
36 lines
458 B
Plaintext
|
--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 [ <default> public $bar ]
|
||
|
}
|
||
|
|
||
|
- Dynamic properties [0] {
|
||
|
}
|
||
|
|
||
|
- Methods [0] {
|
||
|
}
|
||
|
}
|