greencape/reflector

A wrapper to the Reflection classes for accessing non-public properties and methods for testing.

1.0.0 2015-07-16 01:53 UTC

README

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.