1--TEST-- 2ReflectionClass::__toString() - array constants 3--FILE-- 4<?php 5Class A { 6 const A = 8; 7 const B = ["a", "b"]; 8} 9echo new ReflectionClass("A"), "\n"; 10?> 11--EXPECTF-- 12Class [ <user> class A ] { 13 @@ %s 2-5 14 15 - Constants [2] { 16 Constant [ public int A ] { 8 } 17 Constant [ public array B ] { Array } 18 } 19 20 - Static properties [0] { 21 } 22 23 - Static methods [0] { 24 } 25 26 - Properties [0] { 27 } 28 29 - Methods [0] { 30 } 31} 32