mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
34 lines
457 B
Plaintext
34 lines
457 B
Plaintext
|
--TEST--
|
||
|
ReflectionClass::__toString() (constants)
|
||
|
--SKIPIF--
|
||
|
<?php extension_loaded('reflection') or die('skip'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class Foo {
|
||
|
const test = "ok";
|
||
|
}
|
||
|
$class = new ReflectionClass("Foo");
|
||
|
echo $class;
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Class [ <user> class Foo ] {
|
||
|
@@ %s017.php 2-4
|
||
|
|
||
|
- Constants [1] {
|
||
|
Constant [ string test ] { ok }
|
||
|
}
|
||
|
|
||
|
- Static properties [0] {
|
||
|
}
|
||
|
|
||
|
- Static methods [0] {
|
||
|
}
|
||
|
|
||
|
- Properties [0] {
|
||
|
}
|
||
|
|
||
|
- Methods [0] {
|
||
|
}
|
||
|
}
|
||
|
|