php-src/ext/reflection/tests/ReflectionClass_export_array_bug72222.phpt
Nikita Popov 3121b7174f Deprecate Reflection export() methods
And remove the Reflector::export() interface method.
2019-07-22 11:39:52 +02:00

31 lines
429 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] {
}
}