1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 20:53:00 +02:00
Files
archived-php-src/ext/reflection/tests/017.phpt

52 lines
635 B
PHP
Executable File

--TEST--
ReflectionClass::__toString() (constants)
--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] {
}
}
--UEXPECTF--
Class [ <user> class Foo ] {
@@ %s017.php 2-4
- Constants [1] {
Constant [ Unicode string test ] { ok }
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [0] {
}
}