testinaweb/php-access-all
最新稳定版本:0.1.0
Composer 安装命令:
composer require testinaweb/php-access-all
包简介
A library to access and to unit test private and protected methods and properties
README 文档
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');
统计信息
- 总下载量: 1.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-09-28