php-src/ext/reflection/tests/ReflectionClass_export_array_bug72222.phpt
2020-02-03 22:52:20 +01:00

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