xref: /PHP-7.4/ext/reflection/tests/017.phpt (revision f1d7e3ca)
1--TEST--
2ReflectionClass::__toString() (constants)
3--FILE--
4<?php
5class Foo {
6	const test = "ok";
7}
8$class = new ReflectionClass("Foo");
9echo $class;
10?>
11--EXPECTF--
12Class [ <user> class Foo ] {
13  @@ %s017.php 2-4
14
15  - Constants [1] {
16    Constant [ public string test ] { ok }
17  }
18
19  - Static properties [0] {
20  }
21
22  - Static methods [0] {
23  }
24
25  - Properties [0] {
26  }
27
28  - Methods [0] {
29  }
30}
31