flexic/data-provider

Provides generic data providers for use with phpunit/phpunit.

1.0.0 2022-11-01 14:07 UTC

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.

Donate