php-src/ext/reflection/tests/reflectionObject___toString_basic1.phpt
2008-11-17 12:50:18 +00:00

38 lines
460 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 [ <default> public $bar ]
}
- Dynamic properties [0] {
}
- Methods [0] {
}
}