1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
2020-02-03 22:52:20 +01:00

31 lines
398 B
PHP

--TEST--
ReflectionClass::__toString() (constants)
--FILE--
<?php
class Foo {
const test = "ok";
}
$class = new ReflectionClass("Foo");
echo $class;
?>
--EXPECTF--
Class [ <user> class Foo ] {
@@ %s017.php 2-4
- Constants [1] {
Constant [ public string test ] { ok }
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [0] {
}
}