php-src/ext/reflection/tests/ReflectionClass_export_array_bug72222.phpt

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] {
}
}