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. | 57 | 57 | 0 | 36K | 0 | 21.0 | 45.4 | MIT | 2 years 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(). | 137 | 137 | 6 | 5K | 0 | 24.5 | 25.1 | MIT | 7 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. | 44 | 46 | 14 | 3M | 0 | 0.7 | 55.3 | MIT | — | |
| spatie/pest-plugin-snapshots | 0.82 | 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 | 2 months ago | |
| 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 | 49K | 0 | 23.2 | 48.6 | MIT | 7 months ago | |
| spatie/once | 0.75 | 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,430 | 1,437 | 61 | 272K | 0 | 34.7 | 37.1 | MIT | 4 months ago |
How can I help you explore Laravel packages today?