Download the PHP package lelinea/api-snapshot-testing without Composer
On this page you can find all versions of the php package lelinea/api-snapshot-testing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lelinea/api-snapshot-testing
More information about lelinea/api-snapshot-testing
Files in lelinea/api-snapshot-testing
Download lelinea/api-snapshot-testing
More information about lelinea/api-snapshot-testing
Files in lelinea/api-snapshot-testing
Vendor lelinea
Package api-snapshot-testing
Short Description Provides PHPUnit assertions for api snapshot testing
License MIT
Package api-snapshot-testing
Short Description Provides PHPUnit assertions for api snapshot testing
License MIT
Please rate this library. Is it a good library?
Informations about the package api-snapshot-testing
Snapshot Testing
Provides PHPUnit assertions for snapshot testing
Installation
Basic Usage
Using Wildcards
If you have content in your data which changes intentionally you can use wildcards:
This ignores the concrete uuid given for the field "id" and only checks that a valid uuid is provided.
The library currently supports the following wildcards:
- BooleanWildcard
- IntegerWildcard
- UuidWildcard
- UuidOrNullWildcard
- DateTimeWildcard
- DateTimeOrNullWildcard
- StringWildcard
- StringOrNullWildcard
Usage in CI
When running your tests in Continuous Integration you would possibly want to disable the creation of snapshots.
By using the --without-creating-snapshots parameter, PHPUnit will fail if the snapshots don't exist.
All versions of api-snapshot-testing with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-json Version *
ext-dom Version *
ext-simplexml Version *
ext-mbstring Version *
phpunit/phpunit Version ~9.1
symfony/filesystem Version 6.4.*
symfony/property-access Version 6.4.*
webmozart/assert Version ~1.2
ext-json Version *
ext-dom Version *
ext-simplexml Version *
ext-mbstring Version *
phpunit/phpunit Version ~9.1
symfony/filesystem Version 6.4.*
symfony/property-access Version 6.4.*
webmozart/assert Version ~1.2
The package lelinea/api-snapshot-testing contains the following files
Loading the files please wait ....