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: 21 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T11:03:30.000Z (12 months ago)
- Last Synced: 2024-09-29T20:04:40.758Z (7 months 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.
[](https://github.com/henryruhs/phpunit-autoprovide/actions?query=workflow:ci)
[](https://packagist.org/packages/henryruhs/phpunit-autoprovide)
[](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"
]
]
```