You don't need this, we have a `Joomla\Test\TestHelper` class with helper methods for using `Reflection`.  If it isn't already, you can add `joomla/test` to the `require-dev` portion of the `composer.json` file.