An open API service indexing awesome lists of open source software.

https://github.com/fabiothiroki/php-reflection-test

A simple example of unit tests using reflection
https://github.com/fabiothiroki/php-reflection-test

php reflection test testing tests

Last synced: about 1 month ago
JSON representation

A simple example of unit tests using reflection

Awesome Lists containing this project

README

          

# php-reflection-test
[![PHP Composer](https://github.com/fabiothiroki/php-reflection-test/actions/workflows/php.yml/badge.svg)](https://github.com/fabiothiroki/php-reflection-test/actions/workflows/php.yml)
[![Coverage Status](https://coveralls.io/repos/github/fabiothiroki/php-reflection-test/badge.svg?branch=main)](https://coveralls.io/github/fabiothiroki/php-reflection-test?branch=main)

Code example demonstrating how to use reflection to improve testability. Tutorial [here](https://dev.to/fabiothiroki/improve-your-php-code-testability-1onb).

## Setup

### Install dependencies
```
composer install
```

### Run tests
```
composer test
```