flexic / data-provider
Provides generic data providers for use with phpunit/phpunit.
1.0.0
2022-11-01 14:07 UTC
Requires
- php: ^7.4 || ^8.0
- endyjasmi/cuid: ^2.1.0
- ergebnis/data-provider: ^1.2.0
- fakerphp/faker: ^1.19.0
- hidehalo/nanoid-php: ^1.1.12
- symfony/uid: ^5.4
Requires (Dev)
- ergebnis/php-cs-fixer-config: ^4.9.0
- phpstan/phpstan: ^1.8.8
- phpstan/phpstan-deprecation-rules: ^1.0.0
- phpstan/phpstan-strict-rules: ^1.4.4
- phpunit/phpunit: ^9.5.25
This package is auto-updated.
Last update: 2024-11-05 02:31:24 UTC
README
This package provides a simple way to create data providers for your phpunit tests.
It is inspired by the ergebnis/data-provider and should extend this with additional data providers.
Installation
Run
composer require --dev flexic/data-provider
Usage
The flexic/data-provider
package provides the following providers:
Id
Flexic\DataProvider\Types\CuidProvider
long()
provides a CUID in long format.short()
provides a CUID in short format.
Flexic\DataProvider\Types\SequenceProvider
short()
provides sequence with 10 numbers.long()
provides sequence with 1000 numbers.extraLong()
provides sequence with 100000 numbers.
Flexic\DataProvider\Types\UuidProvider
v1()
provides UUID in v1 format.v3()
provides UUID in v3 format.v4()
provides UUID in v4 format.v5()
provides UUID in v5 format.v6()
provides UUID in v6 format.
License
This package is licensed using the GNU License.
Please have a look at LICENSE.md.