All notable changes to phpunit-snapshot-assertions will be documented in this file
- add support for PHP 8
- moves default implementation of snapshot directory/id to concerns directory (#99)
- Fix exception message
- Fixed inconsistent line endings
- Improved Windows support
- Added
--without-creating-snapshotsflag
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
- Add support for PHPUnit 9 (#86)
- Drop support for PHP 7.3
assertMatchesJsonSnapshotnow supports all JSON serializable objects, and won't convert empty arrays to obejcts anymore
- Allow symfony 5 components
- Added an
assertMatchesHtmlSnapshotassertion
- Allow recursive mkdir for file snapshots
- Less restrictive symfony/yaml version requirement
- Fix for json driver
- Require PHPUnit 8 & PHP 7.2
- Use YAML by default for associative arrays
- Drop PHP 7.0 support, the new constraint is ^7.1
- Drop PHPUnit ^6.5 support, the new constraint is ^7.0
- Fix JSON array comparisons
- Allow arrays to be serialized to JSON
- Fix updating failed file-snapshots
- Fix for tests with weird characters
- Lowered minimum required PHPUnit version
- Only mark test incomplete after every snapshot has been run
- Fixed snapshot creation in recursive directories
- Support PHP 7.2
- Support phpunit ^7.0
- Added
assertMatchesFileSnapshot
- Fixed
assertMatchesFileHashSnapshot
- Added
assertMatchesFileHashSnapshotassertion
- Added
examplefolder to.gitattributes
- Fixed expected and actual argument order when making json assertions
- Added a reminder how to update snapshots when a snapshot assertion fails
- Initial release