Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
foreach ([
'TraitFixtureA',
// 'TraitFixtureB',
// 'TraitFixtureC',
// 'TraitFixtureD',
] as $c) {
echo "\n\n" . $c . "\n" . str_repeat('=', strlen($c)) . "\n\n";
$a = new \ReflectionClass($c);
var_dump($a->getTraits());
var_dump($a->getTraitNames());
var_dump($a->getTraitAliases());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment