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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| symplify/easy-testing | 0.85 | Utilities for easier PHP unit testing, focused on writing cleaner tests with less boilerplate. Provides helpers and base test cases commonly used in Symplify tools to streamline assertions, fixture handling, and test setup across projects. | 41 | 42 | 3 | 29K | 0 | 0.1 | 27.7 | MIT | — | |
| spatie/pest-plugin-snapshots | 0.84 | Add snapshot testing to Pest. Assert strings, JSON, and more against stored snapshots using helper functions or Pest expectations like toMatchSnapshot(). Built on Spatie’s phpunit-snapshot-assertions for easy, reliable regression testing. | 38 | 39 | 11 | 40K | 0 | 23.0 | 49.0 | MIT | 1 month ago | |
| simpletest/simpletest | 0.84 | SimpleTest is a PHP unit testing framework with web site testing and mock objects. Install via Composer (simpletest/simpletest) for PHP 7.1+ and run its own unit and acceptance test suites; issues and community support via GitHub and Stack Overflow. | 149 | 153 | 48 | 2K | 3 | 24.5 | 18.7 | LGPL-2.1 | 6 months ago | |
| phpunit/phpunit | 0.83 | PHPUnit is the leading unit testing framework for PHP, based on the xUnit architecture. Run tests from a bundled PHAR or install via Composer, with CI and code coverage support to help keep your code reliable. | 20,013 | 20,525 | 2,233 | 13M | 59 | 88.0 | 72.7 | BSD-3-Clause | 1 day ago | |
| spatie/tabular-assertions | 0.82 | Write readable “tabular assertions” for Pest or PHPUnit by describing expected data as a Markdown-like table and comparing it to actual arrays/collections. Ideal for ordered datasets like time series, financials, or database rows, with clear diffs. | 57 | 57 | 0 | 36K | 0 | 21.0 | 45.4 | MIT | 2 years ago | |
| spatie/test-time | 0.81 | Control time in tests with Spatie TestTime—freeze or advance Carbon-based timestamps dynamically for time-sensitive assertions. Simplify testing date-dependent logic by manually adjusting time without altering real-world clocks. Works seamlessly with Carbon’s methods like addYear(), subDay(), or cus... | 208 | 208 | 10 | 160K | 0 | 25.2 | 46.9 | MIT | 2 years ago |
How can I help you explore Laravel packages today?