betterphp / php-reflection-utils
PHP Reflection Utils is a set of helper methods for accessing the private properties and methods of a class
Installs: 10 697
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >= 5.6.0
Requires (Dev)
- betterphp/php-code-style: dev-master
- phpdocumentor/phpdocumentor: ~2
- phpunit/phpunit: ~6
- squizlabs/php_codesniffer: ~2
This package is not auto-updated.
Last update: 2025-03-30 05:36:19 UTC
README
A small helper class to make accessing private properties and methods easier, largely used in testing.
Installation
The library can be included via composer
{ "require-dev": { "betterphp/php-reflection-utils": "1.0.0" } }
Documentation
Jenkins publishes a phpdoc here
Testing
We use phpcs and phpunit for testing, run both before commiting anything
./vendor/bin/phpcs -p --standard=./ruleset.xml .
./vendor/bin/phpunit -c ./phpunit.xml
phpunit will do code coverage checking which requires xdebug, if it's not installed this will fail gracefully - not to worry.
A report of the test coverage is published here by Jenkins