Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/phoenixrvd/phpunit-data-provider-yaml

Magic helper to autoload YAML, JSON or PHP files for data providers in PHPUnit.
https://github.com/phoenixrvd/phpunit-data-provider-yaml

clean-code composer-package mit-license php php-library php56 php71 php72 php73 phpunit phpunit-extension

Last synced: about 2 months ago
JSON representation

Magic helper to autoload YAML, JSON or PHP files for data providers in PHPUnit.

Awesome Lists containing this project

README

        

# PHPUnit - data providers

[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF.svg)](https://php.net/)
[![Latest Stable Version](https://poser.pugx.org/phoenixrvd/phpunit-data-provider-yaml/v/stable.svg)](https://packagist.org/packages/phoenixrvd/phpunit-data-provider-yaml)
[![composer.lock](https://poser.pugx.org/phoenixrvd/phpunit-data-provider-yaml/composerlock)](https://packagist.org/packages/phoenixrvd/phpunit-data-provider-yaml)
[![License](https://poser.pugx.org/phoenixrvd/phpunit-data-provider-yaml/license)](https://packagist.org/packages/phoenixrvd/phpunit-data-provider-yaml)

[![Build Status](https://travis-ci.org/phoenixrvd/phpunit-data-provider-yaml.png?branch=master)](https://travis-ci.org/phoenixrvd/phpunit-data-provider-yaml)
[![Code Climate](https://codeclimate.com/github/phoenixrvd/phpunit-data-provider-yaml.png)](https://codeclimate.com/github/phoenixrvd/phpunit-data-provider-yaml)
[![StyleCI](https://styleci.io/repos/102899359/shield?branch=master)](https://styleci.io/repos/102899359)
[![Test Coverage](https://codeclimate.com/github/phoenixrvd/phpunit-data-provider-yaml/badges/coverage.svg)](https://codeclimate.com/github/phoenixrvd/phpunit-data-provider-yaml/coverage)
[![Latest Unstable Version](https://poser.pugx.org/phoenixrvd/phpunit-data-provider-yaml/v/unstable.svg)](https://packagist.org/packages/phoenixrvd/phpunit-data-provider-yaml)

- [Installation](#installation)
- [How to use](#how-to-use)
- [Testing](#testing)
- [Copyright and license](#copyright-and-license)

Magic helper to autoload YAML, JSON or PHP files for [data providers](https://phpunit.readthedocs.io/en/7.1/writing-tests-for-phpunit.html#data-providers) in [PHPUnit](https://phpunit.de/index.html).

## Installation

Install the latest version with

```bash
composer require --dev phoenixrvd/phpunit-data-provider-yaml
```

## How to use

See [Example](./tests/ExampleTest.php) implementation.

## Testing

```bash
composer phpunit_data_provider_yaml:test
```

## Copyright and license

Code released under the [MIT License](LICENSE).