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