testinaweb/php-access-all

A library to access and to unit test private and protected methods and properties

Installs: 1 570

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/testinaweb/php-access-all

0.1.0 2016-04-11 10:57 UTC

This package is not auto-updated.

Last update: 2025-10-07 09:12:11 UTC


README

This library is developed to allow unit tests to test private/protected methods and property values

Install

Use shell:

composer require testinaweb/php-access-all

Use through composer.json:

{
  "require": {
    "testinaweb/php-access-all": "~0.1.0"
  }
}

Usage

use Testinaweb\AccessAll\AccessMethod

$result = AccessMethod::invokeMethod($myClass, 'protectedMethod', [$parameter1, $parameter2, ...]);
use Testinaweb\AccessAll\AccessProperty

$value = AccessProperty::getProperty($myClass, 'propertyName');