A wrapper to the Reflection classes for accessing non-public properties and methods for testing.
PHP Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
src/GreenCape
tests
.gitignore
.travis.yml
LICENSE.md
README.md
composer.json
composer.lock
phpunit.xml

README.md

Reflector

SensioLabsInsight Code Climate Test Coverage Latest Stable Version Build Status

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.