Skip to content

Releases: spatie/phpunit-snapshot-assertions

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

3.1.1

10 Feb 13:20
35ce6ae
Compare
Choose a tag to compare
  • add support for PHPUnit 9 (#86)

3.1.0

02 Dec 20:09
52bb7c9
Compare
Choose a tag to compare
  • drop support for PHP 7.3

3.0.0

22 Nov 09:49
04b5372
Compare
Choose a tag to compare
  • assertMatchesJsonSnapshot now supports all JSON serializable objects, and won't convert empty arrays to obejcts anymore

2.2.1

21 Nov 23:15
cc6769a
Compare
Choose a tag to compare
  • Allow symfony 5 components

2.2.0

23 Oct 15:02
7da647e
Compare
Choose a tag to compare
  • Added an assertMatchesHtmlSnapshot assertion

2.1.3

07 Aug 15:32
38d1b73
Compare
Choose a tag to compare
  • Allow recursive mkdir for file snapshots

1.4.2

13 May 06:16
b237c40
Compare
Choose a tag to compare
  • Fix JSON driver

2.1.2

27 Mar 15:38
Compare
Choose a tag to compare
  • Less restrictive symfony/yaml version requirement