Releases: spatie/phpunit-snapshot-assertions
Releases · spatie/phpunit-snapshot-assertions
4.1.0
- Added
--without-creating-snapshots
flag
4.0.0
Snapshots generated with assertMatchesSnapshot
will break when upgrading to this version. The easiest way to upgrade is to ensure your snapshot tests pass, delete your snapshots, upgrade the package, then rerun the tests to generate new snapshots.
- New snapshot formats when using
assertMatchesSnapshot
: scalars (strings, integers & floats) are serialized totxt
files, objects & arrays are serialized toyaml
files - New
TextDriver
to store snapshots intxt
files - New
ObjectDriver
to serialize data to YAML and store snapshots inyaml
files - Removed
VarDriver
3.1.1
3.1.0
- drop support for PHP 7.3
3.0.0
assertMatchesJsonSnapshot
now supports all JSON serializable objects, and won't convert empty arrays to obejcts anymore
2.2.1
- Allow symfony 5 components
2.2.0
- Added an
assertMatchesHtmlSnapshot
assertion
2.1.3
- Allow recursive mkdir for file snapshots
1.4.2
- Fix JSON driver
2.1.2
- Less restrictive symfony/yaml version requirement