PHPackages                             knj/revelation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. knj/revelation

ActiveLibrary

knj/revelation
==============

Easiest way to make non-public methods accessible

1.1.0(7y ago)721.4k↓46.7%MITPHP

Since Dec 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/KNJ/revelation)[ Packagist](https://packagist.org/packages/knj/revelation)[ RSS](/packages/knj-revelation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Revelation
==========

[](#revelation)

[![Build Status](https://camo.githubusercontent.com/819361d1596577a5900e4dcd62aaf8d68a40ac1d98f0fbbaebce1db03f1d5bba/68747470733a2f2f7472617669732d63692e6f72672f4b4e4a2f726576656c6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/KNJ/revelation)[![codecov](https://camo.githubusercontent.com/580570103848057efc7f6e596fbf4d7900af28cdab5767bc79b09f80e3550ff3/68747470733a2f2f636f6465636f762e696f2f67682f4b4e4a2f726576656c6174696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/KNJ/revelation)

It is very hard to test a protected or private method when using testing tool like PHPUnit. With Revelation, you can access all the methods and properties by using a simple function.

Supported Versions
------------------

[](#supported-versions)

- PHP 7.1 or higher

Installation
------------

[](#installation)

Use Composer:

```
composer require --dev knj/revelation

```

Quick Start
-----------

[](#quick-start)

Try the code below (with autoload):

```
