Skip to content

Releases: spatie/phpunit-snapshot-assertions

4.2.7

09 Jul 08:38
981fa0e
Compare
Choose a tag to compare
  • clean filenames on MatchesFileSnapshot for Windows (#130)

4.2.6

20 Apr 07:53
811d4ed
Compare
Choose a tag to compare
  • allow using env vars to manage snapshot creation and update (#126)

4.2.5

27 Jan 08:12
Compare
Choose a tag to compare
  • add support for PHP 7.3

4.2.4

26 Nov 13:05
a6ba40b
Compare
Choose a tag to compare
  • Add support for PHP 8.0 (#122)

4.2.3

03 Nov 10:17
b8a978c
Compare
Choose a tag to compare
  • add support for PHP 8

4.2.2

01 Jun 08:11
869122d
Compare
Choose a tag to compare
  • moves default implementation of snapshot directory/id to concerns directory (#99)

4.2.1

19 May 14:48
537ea92
Compare
Choose a tag to compare
  • Fix exception message

4.2.0

11 May 13:40
Compare
Choose a tag to compare
  • Fixed inconsistent line endings
  • Improved Windows support

4.1.0

08 Apr 15:50
31d94d6
Compare
Choose a tag to compare
  • Added --without-creating-snapshots flag

4.0.0

11 Feb 13:52
Compare
Choose a tag to compare

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 to txt files, objects & arrays are serialized to yaml files
  • New TextDriver to store snapshots in txt files
  • New ObjectDriver to serialize data to YAML and store snapshots in yaml files
  • Removed VarDriver