Releases: spatie/phpunit-snapshot-assertions
Releases · spatie/phpunit-snapshot-assertions
4.2.2
4.2.1
- Fix exception message
4.2.0
- Fixed inconsistent line endings
- Improved Windows support
4.1.0
- Added
--without-creating-snapshotsflag
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 totxtfiles, objects & arrays are serialized toyamlfiles - New
TextDriverto store snapshots intxtfiles - New
ObjectDriverto serialize data to YAML and store snapshots inyamlfiles - Removed
VarDriver
3.1.1
3.1.0
- drop support for PHP 7.3
3.0.0
assertMatchesJsonSnapshotnow 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
assertMatchesHtmlSnapshotassertion