Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/henryruhs/phpunit-autoprovide

Magic helper to autoload CSV, JSON, PHP, XML and YAML data provider in PHPUnit
https://github.com/henryruhs/phpunit-autoprovide

autoloader json phpunit provider

Last synced: 24 days ago
JSON representation

Magic helper to autoload CSV, JSON, PHP, XML and YAML data provider in PHPUnit

Awesome Lists containing this project

README

        

PHPUnit AutoProvide
===================

> Magic helper to autoload CSV, JSON, PHP, XML and YAML data provider in PHPUnit.

[![Build Status](https://img.shields.io/github/actions/workflow/status/henryruhs/phpunit-autoprovide/ci.yml.svg?branch=master)](https://github.com/henryruhs/phpunit-autoprovide/actions?query=workflow:ci)
[![Packagist Version](https://img.shields.io/packagist/v/henryruhs/phpunit-autoprovide.svg)](https://packagist.org/packages/henryruhs/phpunit-autoprovide)
[![License](https://img.shields.io/packagist/l/henryruhs/phpunit-autoprovide.svg)](https://packagist.org/packages/henryruhs/phpunit-autoprovide)

Installation
------------

```
composer require henryruhs/phpunit-autoprovide
```

Setup
-----

Create the `TestCaseAbstract` for your testing suite:

```php
assertEquals($expect, 'test');
}
}
```

Create the `ExampleTest{_testMethod}.{csv|json|php|xml|yml}` file:

```json
[
[
"test"
]
]
```