mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
32 lines
408 B
PHP
32 lines
408 B
PHP
--TEST--
|
|
ReflectionClass::export() - array constants
|
|
--FILE--
|
|
<?php
|
|
Class A {
|
|
const A = 8;
|
|
const B = ["a", "b"];
|
|
}
|
|
ReflectionClass::export("A");
|
|
?>
|
|
--EXPECTF--
|
|
Class [ <user> class A ] {
|
|
@@ %s 2-5
|
|
|
|
- Constants [2] {
|
|
Constant [ integer A ] { 8 }
|
|
Constant [ array B ] { Array }
|
|
}
|
|
|
|
- Static properties [0] {
|
|
}
|
|
|
|
- Static methods [0] {
|
|
}
|
|
|
|
- Properties [0] {
|
|
}
|
|
|
|
- Methods [0] {
|
|
}
|
|
}
|