Skip to content

testinaweb/php-access-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Php Access All

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages