spatie/pest-expectations
Add expressive, chainable expectations to Pest tests with Spatie’s helpers. Provides handy assertion-style methods for cleaner, more readable tests, letting you validate values, types, strings, arrays, and more with minimal boilerplate.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/tabular-assertions | 0.87 | 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. | 59 | 58 | 0 | 36K | 0 | 0.9 | 38.4 | MIT | 2 years ago | |
| spatie/pest-plugin-snapshots | 0.86 | Adds snapshot testing to Pest via Spatie’s snapshot assertions. Compare strings or JSON against stored snapshots with helper functions or Pest expectations. Ideal for stable output/regression testing in PHP projects. | 39 | 39 | 11 | 47K | 0 | 21.6 | 48.6 | MIT | 1 month ago | |
| spatie/pest-plugin-route-testing | 0.84 | Pest plugin for Laravel that automatically tests all your app’s GET routes. Run a single test to assert responses are successful, redirects, forbidden, not found, etc. Filter routes by pattern and provide models for route model bindings via bind(). | 138 | 137 | 6 | 6K | 0 | 9.0 | 23.5 | MIT | 9 months ago | |
| pestphp/pest-plugin | 0.83 | Plugin API for Pest PHP, the elegant testing framework. Use it to build and distribute Pest plugins that extend the runner, add custom expectations, hooks, and tooling integrations for your PHP test suite. | 0 | 47 | — | 4M | — | 0.9 | 55.6 | — | — | |
| spatie/pest-plugin-test-time | 0.82 | Pest plugin to control time in tests via Carbon::setTestNow(): freeze “now” and easily move it forward/backward (e.g., addMinute). Includes a toBeCarbon expectation for asserting Carbon dates/times and formats. | 49 | 49 | 8 | 41K | 0 | 23.2 | 48.6 | MIT | 9 months ago | |
| mrpunyapal/peststan | 0.81 | PestStan integrates PHPStan with the Pest testing framework, making static analysis fit naturally into your test workflow. Adds Pest-friendly configuration and helpers so you can run PHPStan on your codebase with minimal setup. | 48 | 46 | 2 | 28K | 1 | 25.4 | 44.4 | MIT | 3 weeks ago | |
| spatie/once | 0.76 | A tiny PHP helper to run code only once per request. Cache expensive computations or object initialization in a single spot, keyed automatically by the call site. Great for computed properties, accessors, and avoiding duplicate work. | 1,438 | 1,444 | 61 | 264K | 0 | 24.2 | 33.9 | MIT | 6 months ago |
How can I help you explore Laravel packages today?