Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpunit Snapshot Assertions Laravel Package

spatie/phpunit-snapshot-assertions

Add snapshot testing to PHPUnit with simple assertions for JSON, XML, and text. First run creates snapshots; later runs compare outputs and fail on regressions. Ideal for verifying serialized data and responses with minimal test boilerplate.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables rapid test creation for complex outputs (JSON, HTML, images) without manual assertion logic
  • Reduces test maintenance overhead by 30-50% for data serialization and rendering scenarios
  • Supports CI/CD regression detection for critical data transformations with minimal configuration
  • Eliminates need for custom snapshot solutions, making it a clear "buy" decision over building in-house
  • Accelerates feature delivery by simplifying test writing for UI components and API responses

When to Consider This Package

  • Adopt when testing complex data structures where full output validation is valuable (e.g., API responses, HTML rendering, image processing)
  • Use when prioritizing
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport