2017 © Pedro Peláez
 

library php-access-all

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

image

testinaweb/php-access-all

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

  • Monday, April 11, 2016
  • by testinaweb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,395 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Php Access All

This library is developed to allow unit tests to test private/protected methods and property values, (*1)

Install

Use shell:, (*2)

composer require testinaweb/php-access-all

Use through composer.json:, (*3)

{
  "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');

The Versions

11/04 2016

dev-master

9999999-dev

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

  Sources   Download

GPL-2.0

The Requires

  • php >=5.5.0

 

The Development Requires

phpunit php unit test test private method test protected method

11/04 2016

0.1.0

0.1.0.0

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

  Sources   Download

GPL-2.0

The Requires

  • php >=5.5.0

 

The Development Requires

phpunit php unit test test private method test protected method