Your IP : 216.73.216.48


Current Path : /hdd/hdd12/install/php/php-7.4.32/ext/reflection/tests/
Upload File :
Current File : //hdd/hdd12/install/php/php-7.4.32/ext/reflection/tests/ReflectionClass_export_array_bug72222.phpt

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