Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suin/php-expose
📦 Makes non-public properties and methods be testable to help your unit tests with PHPUnit.
https://github.com/suin/php-expose
Last synced: 3 months ago
JSON representation
📦 Makes non-public properties and methods be testable to help your unit tests with PHPUnit.
- Host: GitHub
- URL: https://github.com/suin/php-expose
- Owner: suin
- Created: 2012-09-16T08:44:33.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-16T09:00:02.000Z (about 12 years ago)
- Last Synced: 2024-07-14T18:17:08.271Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 98.6 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Expose
`Expose` makes non-public properties and methods be testable to help your unit tests with PHPUnit.
The build status of the current master branch is tracked by Travis CI: [![Build Status](https://secure.travis-ci.org/suin/php-expose.png)](http://travis-ci.org/suin/php-expose)
```php
attr('_secret', 'foo')
->attr('_protected', 'bar');// Call non-public method
$result = e::expose($object)->call('_hello', 'Suin');
```## Requirements
* PHP 5.3 or later
## Installation
Just git-clone or inntall via composer.
composer.json:
```json
{
"require": {
"suin/php-expose": ">=1.0"
}
}
```Inclue `vendor/autoload.php` in your `bootstrap.php` of PHPUnit to load `Expose` components:
```
require_once 'vendor/autoload.php';
```## License
MIT License