Skip to content

composer(deps-dev): update spatie/phpunit-snapshot-assertions requirement from ^5.3 to ^5.4#99

Merged
pierredup merged 1 commit into
mainfrom
dependabot/composer/spatie/phpunit-snapshot-assertions-tw-5.4
Jun 17, 2026
Merged

composer(deps-dev): update spatie/phpunit-snapshot-assertions requirement from ^5.3 to ^5.4#99
pierredup merged 1 commit into
mainfrom
dependabot/composer/spatie/phpunit-snapshot-assertions-tw-5.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 30, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on spatie/phpunit-snapshot-assertions to permit the latest version.

Release notes

Sourced from spatie/phpunit-snapshot-assertions's releases.

5.4.0

What's Changed

  • Add vendor/bin/update-snapshots wrapper binary that sets UPDATE_SNAPSHOTS=true and runs PHPUnit. This replaces the previously documented phpunit -d --update-snapshots syntax, which abused PHPUnit's -d flag and produces a Failed to set "--update-snapshots=1" test runner warning since PHPUnit 12.5.12.
  • Drop the phpunit -d --without-creating-snapshots form from the README. Use the CREATE_SNAPSHOTS=false environment variable instead. The argv check is kept in shouldCreateSnapshots() for backwards compatibility.
  • The wrapper restores the prior UPDATE_SNAPSHOTS env var state on shutdown, so it does not leak a state mutation to any in-process code that runs after PHPUnit.
  • Reworded the "Snapshot does not exist" failure message and the "snapshots can be updated by..." prompt to point at the new approach.
  • shouldUpdateSnapshots() and shouldCreateSnapshots() now check the env var first, then fall back to the legacy CLI argument.
  • Fix tests on PHPUnit 12.5+, where mocks throwing AssertionFailedError are tracked as a test failure even when user code catches the exception. The expectFail helper now uses a plain RuntimeException carrying the expected message.

Closes #242.

Full Changelog: spatie/phpunit-snapshot-assertions@5.3.2...5.4.0

Changelog

Sourced from spatie/phpunit-snapshot-assertions's changelog.

5.4.0 - 2026-04-29

What's Changed

  • Add vendor/bin/update-snapshots wrapper binary that sets UPDATE_SNAPSHOTS=true and runs PHPUnit. This replaces the previously documented phpunit -d --update-snapshots syntax, which abused PHPUnit's -d flag and produces a Failed to set "--update-snapshots=1" test runner warning since PHPUnit 12.5.12.
  • Drop the phpunit -d --without-creating-snapshots form from the README. Use the CREATE_SNAPSHOTS=false environment variable instead. The argv check is kept in shouldCreateSnapshots() for backwards compatibility.
  • The wrapper restores the prior UPDATE_SNAPSHOTS env var state on shutdown, so it does not leak a state mutation to any in-process code that runs after PHPUnit.
  • Reworded the "Snapshot does not exist" failure message and the "snapshots can be updated by..." prompt to point at the new approach.
  • shouldUpdateSnapshots() and shouldCreateSnapshots() now check the env var first, then fall back to the legacy CLI argument.
  • Fix tests on PHPUnit 12.5+, where mocks throwing AssertionFailedError are tracked as a test failure even when user code catches the exception. The expectFail helper now uses a plain RuntimeException carrying the expected message.

Closes #242.

Full Changelog: spatie/phpunit-snapshot-assertions@5.3.2...5.4.0

5.3.2 - 2026-02-09

What's Changed

  • Fix BC break in getSnapshotId() from named snapshots feature — restored original no-parameter signature
  • Add README documentation for named snapshots

5.3.1 - 2026-02-08

What's Changed

  • Allow PHPUnit 13

5.3.0 - 2026-01-22

What's Changed

  • Add support for PHPUnit 9.6 by @​alex-dev in spatie/phpunit-snapshot-assertions#235
  • Add PHPUnit versioning to CI matrix to test against multiple PHPUnit versions
  • Add PhpUnitCompatibility trait for cross-version compatibility
  • Fix CI workflow to properly handle PHPUnit version constraints

Full Changelog: spatie/phpunit-snapshot-assertions@5.2.3...5.3.0

5.2.3 - 2025-11-14

What's Changed

New Contributors

... (truncated)

Commits
  • b5ad3ef Add update-snapshots wrapper binary (#245)
  • 2a5d1e0 Simplify shutdown handler
  • 4c9076d Fix tests on PHPUnit 12.5 and add binary tests
  • 1d1a7b6 Drop without-creating-snapshots binary; restore env var on shutdown
  • d6a3361 Address review feedback
  • 0359118 Fix styling
  • 4fe2045 Add wrapper binaries to replace -d --update-snapshots syntax
  • ba48973 Merge pull request #244 from spatie/dependabot/github_actions/dependabot/fetc...
  • 5f34651 Bump dependabot/fetch-metadata from 3.0.0 to 3.1.0
  • 6ef0a3a Fix styling
  • Additional commits viewable in compare view

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot force-pushed the dependabot/composer/spatie/phpunit-snapshot-assertions-tw-5.4 branch from 2ac08d4 to 81d612c Compare May 25, 2026 12:49
@pierredup

Copy link
Copy Markdown
Member

@dependabot rebase

…ment

Updates the requirements on [spatie/phpunit-snapshot-assertions](https://github.com/spatie/phpunit-snapshot-assertions) to permit the latest version.
- [Release notes](https://github.com/spatie/phpunit-snapshot-assertions/releases)
- [Changelog](https://github.com/spatie/phpunit-snapshot-assertions/blob/main/CHANGELOG.md)
- [Commits](spatie/phpunit-snapshot-assertions@5.3.0...5.4.0)

---
updated-dependencies:
- dependency-name: spatie/phpunit-snapshot-assertions
  dependency-version: 5.4.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/composer/spatie/phpunit-snapshot-assertions-tw-5.4 branch from 81d612c to 7e01e3c Compare June 17, 2026 19:43
@pierredup pierredup merged commit 1d7b7ea into main Jun 17, 2026
2 of 6 checks passed
@pierredup pierredup deleted the dependabot/composer/spatie/phpunit-snapshot-assertions-tw-5.4 branch June 17, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant