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

32 lines
418 B
Plaintext
Raw Normal View History

--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 [ public int A ] { 8 }
2016-07-13 19:48:22 +00:00
Constant [ public array B ] { Array }
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [0] {
}
}