1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00
Files
archived-php-src/ext/reflection/tests/ReflectionObject___toString_basic1.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +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] {
}
}