mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
31 lines
435 B
PHP
31 lines
435 B
PHP
--TEST--
|
|
ReflectionClass::__toString() - array constants
|
|
--FILE--
|
|
<?php
|
|
Class A {
|
|
const A = 8;
|
|
const B = ["a", "b"];
|
|
}
|
|
echo new ReflectionClass("A"), "\n";
|
|
?>
|
|
--EXPECTF--
|
|
Class [ <user> class A ] {
|
|
@@ %s 2-5
|
|
|
|
- Constants [2] {
|
|
Constant [ public int A ] { 8 }
|
|
Constant [ public array B ] { Array }
|
|
}
|
|
|
|
- Static properties [0] {
|
|
}
|
|
|
|
- Static methods [0] {
|
|
}
|
|
|
|
- Properties [0] {
|
|
}
|
|
|
|
- Methods [0] {
|
|
}
|
|
}
|