Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/henryruhs/phpunit-autoprovide
- Owner: henryruhs
- License: other
- Created: 2018-06-15T08:42:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T11:03:30.000Z (6 months ago)
- Last Synced: 2024-09-29T20:04:40.758Z (about 1 month ago)
- Topics: autoloader, json, phpunit, provider
- Language: PHP
- Homepage:
- Size: 49.8 KB
- Stars: 21
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
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"
]
]
```