--TEST-- ReflectionClass and Traits --FILE-- isTrait()); var_dump($rBar->isTrait()); echo $rFoo; echo $rBar; ?> --EXPECTF-- bool(true) bool(false) Trait [ trait Foo ] { @@ %straits001.php 2-4 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [1] { Method [ public method someMethod ] { @@ %straits001.php 3 - 3 } } } Class [ class Bar ] { @@ %straits001.php 6-10 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [2] { Method [ public method someOtherMethod ] { @@ %straits001.php 9 - 9 } Method [ public method someMethod ] { @@ %straits001.php 3 - 3 } } }