greencape / reflector
A wrapper to the Reflection classes for accessing non-public properties and methods for testing.
Installs: 58
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
pkg:composer/greencape/reflector
Requires (Dev)
- phpunit/phpunit: ~4.2
This package is auto-updated.
Last update: 2025-09-29 01:37:17 UTC
README
Reflector is a wrapper to the Reflection classes for accessing non-public properties and methods for testing.
Installation
Composer
Simply add a dependency on greencape/reflector
to your project's composer.json
file if you use
Composer to manage the dependencies of your project. Here is a minimal example of a
composer.json
file that just defines a dependency on Joomla CLI:
{
"require-dev": {
"greencape/reflector": "*@stable"
}
}
For a system-wide installation via Composer, you can run:
composer global require --dev 'greencape/reflector=*'
Make sure you have ~/.composer/vendor/bin/
in your path.
Usage Examples
See tests/ReflectorTest.php
for information about how to use Reflector.