1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/reflection/tests/traits002.phpt
Nikita Popov 3121b7174f Deprecate Reflection export() methods
And remove the Reflector::export() interface method.
2019-07-22 11:39:52 +02:00

55 lines
556 B
PHP

--TEST--
ReflectionClass and Traits
--FILE--
<?php
abstract class foo {
}
trait bar {
}
echo new ReflectionClass('foo'), "\n";
echo new ReflectionClass('bar'), "\n";
?>
--EXPECTF--
Class [ <user> abstract class foo ] {
@@ %s 3-4
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [0] {
}
}
Trait [ <user> trait bar ] {
@@ %s 6-8
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [0] {
}
}