Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/razonyang/php-unit-helper
PHP helper for unit testing
https://github.com/razonyang/php-unit-helper
Last synced: about 1 month ago
JSON representation
PHP helper for unit testing
- Host: GitHub
- URL: https://github.com/razonyang/php-unit-helper
- Owner: razonyang
- License: mit
- Created: 2022-09-17T13:32:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-24T08:26:08.000Z (about 2 years ago)
- Last Synced: 2024-05-22T15:30:46.319Z (6 months ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Unit Test Helpers
[![Latest Stable Version](https://poser.pugx.org/razonyang/unit-helper/v/stable.png)](https://packagist.org/packages/razonyang/unit-helper)
[![Total Downloads](https://poser.pugx.org/razonyang/unit-helper/downloads.png)](https://packagist.org/packages/razonyang/unit-helper)
[![Build Status](https://github.com/razonyang/php-unit-helper/actions/workflows/build.yml/badge.svg)](https://github.com/razonyang/php-unit-helper/actions)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/razonyang/php-unit-helper/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/razonyang/php-unit-helper/?branch=main)
[![Code Coverage](https://scrutinizer-ci.com/g/razonyang/php-unit-helper/badges/coverage.png?b=main)](https://scrutinizer-ci.com/g/razonyang/php-unit-helper/?branch=main)
[![StyleCI](https://github.styleci.io/repos/537817860/shield?branch=main)](https://github.styleci.io/repos/537817860?branch=main)## Installation
```bash
composer require razonyang/unit-helper --prefer-dist --dev
```## Helpers
### Reflection Helper
- `ReflectionHelper::invokeMethod`: invoke a non-public method.
- `ReflectionHelper::getPropertyValue`: get a non-public property's value.
- `ReflectionHelper::setPropertyValue`: set a non-public property's value.