spatie/phpunit-snapshot-assertions
Snapshot testing for PHPUnit: assert values match stored snapshots for JSON, strings, arrays, and more. Snapshots are created automatically on first run and compared on subsequent runs.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/phpunit-watcher | 0.89 | Automatically rerun PHPUnit tests whenever your code changes. Run phpunit-watcher watch to execute and re-execute tests on edits in app/src/tests. Supports passing through PHPUnit arguments (e.g. --filter) and works as a global tool or dev dependency. | 875 | 883 | 75 | 344K | 0 | 19.1 | 36.9 | MIT | 10 months ago | |
| owowagency/phpunit-snapshot-assertions | 0.88 | PHPUnit snapshot assertions for PHP and Laravel. Assert that arrays, objects, JSON, or rendered output match a stored snapshot, then update snapshots with a flag when changes are intentional. Keeps tests concise and catches unexpected diffs in CI. | 2 | 2 | 1 | 64 | 0 | 0.2 | 18.6 | — | 6 years ago | |
| spatie/pest-plugin-snapshots | 0.88 | Add snapshot testing to Pest. This plugin wraps spatie/phpunit-snapshot-assertions, giving your Pest tests assertMatchesSnapshot, assertMatchesJsonSnapshot, and the toMatchSnapshot expectation so you can lock in string and JSON output with ease. | 40 | 40 | 11 | 99K | 0 | 18.1 | 52.7 | MIT | 3 months ago | |
| draw/tester | 0.87 | Tools for testing PHP apps: DataTester wraps PHPUnit assertions with a fluent, path-based API for arrays/objects. Includes PHPUnit extensions like CarbonReset to reset Carbon state between tests and SetUpAutowire to autowire test properties via attributes. | 0 | 0 | 0 | 1K | 0 | 0.0 | 43.0 | MIT | — | |
| robiningelbrecht/phpunit-pretty-print | 0.86 | A PHPUnit result printer that transforms default test output into clean, colorful, readable reports. See progress, failures, and timing at a glance, with less noise and more useful detail during every test run. Easy to install and configure via phpunit.xml. | 77 | — | 2 | — | 1 | 8.4 | — | MIT | 7 months ago |
|
| marcin-orlowski/phpunit-extra-asserts | 0.86 | A collection of extra assertions for PHPUnit that helps make test suites more expressive and readable. Add clearer, reusable checks for common test scenarios, reduce custom assertion code, and get more informative failures in PHPUnit-based projects. | 3 | 3 | 0 | 623 | 0 | 0.0 | 30.3 | MIT | 2 years ago | |
| testo/assert | 0.85 | Assertion plugin for the Testo PHP testing framework. Adds a fluent assert/expect facade, expectation lifecycle, and helpers for matching thrown exceptions. Reports comparisons through Testo’s standard pipeline. Install via Composer: testo/assert. | 0 | 0 | 0 | 16K | 0 | 0.0 | 55.3 | — | — | |
| phpunit/phpcov | 0.85 | phpcov is a CLI frontend for php-code-coverage. It merges PHPUnit --coverage-php .cov files from parallel or split runs and generates combined reports (HTML, Clover, etc.) or exports merged data back to a .cov file. | 238 | 241 | 55 | 587K | 1 | 2.9 | 46.8 | BSD-3-Clause | — | |
| sempro/phpunit-pretty-print | 0.85 | Pretty-print PHPUnit test output for cleaner, more readable console runs. sempro/phpunit-pretty-print adds a nicer, compact format that highlights failures and progress, helping you scan results faster while keeping compatibility with standard PHPUnit workflows. | 184 | 185 | 25 | 65K | 3 | 4.3 | 35.8 | MIT | 5 years ago | |
| spatie/invade | 0.85 | Spatie's invade function lets you read, write, and call private properties and methods of any PHP object, including static ones, through a simple proxy—handy for testing or working with legacy code. | 341 | 343 | 20 | 7M | 0 | 24.7 | 64.6 | MIT | 2 weeks ago | |
| lucatume/codeception-snapshot-assertions | 0.85 | Snapshot assertions for Codeception: compare arrays, JSON, or rendered HTML against stored snapshot files, creating them automatically on first run and reporting clear diffs when assertions fail. | 5 | 5 | 4 | 46K | 1 | 0.2 | 53.5 | MIT | 1 year ago | |
| k2gl/phpunit-fluent-assertions | 0.85 | A PHPUnit extension that adds fluent, chainable assertions to your tests, making expectations more readable and expressive while reducing verbose assertion code and keeping familiar PHPUnit workflows. | 2 | 2 | 0 | 586 | 0 | 17.3 | 36.4 | MIT | 1 month ago | |
| richcongress/test-tools | 0.85 | richcongress/test-tools is a small Laravel/PHP package offering testing helpers and utilities to simplify test setup and assertions, helping you write cleaner, more maintainable tests with less boilerplate. | 0 | 0 | 0 | 261 | 1 | 0.1 | 33.4 | MIT | 4 years ago | |
| robiningelbrecht/phpunit-coverage-tools | 0.84 | Enforce minimum PHPUnit code coverage using Clover XML reports. Fails the test run with exit code 1 when coverage drops below a threshold—ideal for CI/CD and pre-commit hooks. Configure via phpunit.xml and run with --min-coverage plus --coverage-clover. | 17 | 17 | 4 | 33K | 1 | 16.4 | 49.3 | MIT | 7 months ago | |
| way/phpunit-wrappers | 0.84 | way/phpunit-wrappers provides lightweight PHPUnit wrapper utilities for Laravel and PHP projects, helping you write cleaner, more readable tests with less boilerplate. Use it to simplify assertions, test setup, and common testing patterns without changing your existing PHPUnit workflow. | 45 | 47 | 2 | 66 | 0 | 0.3 | 5.3 | — | — | |
| spatie/laravel-db-snapshots | 0.84 | Spatie's Laravel package adding Artisan commands to instantly dump and load MySQL, PostgreSQL, or SQLite databases. Create named snapshots, load the latest, list, and clean up old dumps in seconds. | 1,222 | 1,228 | 100 | 128K | 0 | 38.4 | 32.7 | MIT | 2 weeks ago | |
| phpunit/phpunit-skeleton-generator | 0.84 | PHPUnit Skeleton Generator creates skeleton test classes from existing production code and skeleton class stubs from test cases, helping PHP developers bootstrap PHPUnit tests quickly with less boilerplate. | 0 | 160 | — | 29 | — | 0.0 | 20.4 | — | — | |
| spatie/tabular-assertions | 0.84 | 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. | 60 | 60 | 0 | 11K | 0 | 0.9 | 31.1 | MIT | 2 years ago | |
| diablomedia/phpunit-pretty-printer | 0.84 | A drop-in PHPUnit result printer that swaps the default console output for colorful, readable test results. See test progress, failures, exception diffs, and timing at a glance, with configurable verbosity for CI and local runs. | 77 | — | 14 | — | 2 | 1.5 | 1.1 | MIT | 4 years ago |
|
| phpunit/phpunit-dom-assertions | 0.84 | Adds expressive DOM assertions to PHPUnit for testing HTML and XML output, letting you assert elements, attributes, text content, and structure using a fluent, readable API built on Symfony's DomCrawler and CssSelector components. | 29 | — | 13 | — | 1 | 6.3 | — | NOASSERTION | 8 months ago |
|
How can I help you explore Laravel packages today?