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/pest-plugin-snapshots | 0.90 | 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 | |
| spatie/invade | 0.89 | 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 | |
| spatie/pest-plugin-route-testing | 0.88 | Easily test every GET route in your Laravel app with Pest. Assert all routes return successful responses, include or exclude patterns, and bind models for routes with route model bindings. | 141 | 141 | 7 | 9K | 0 | 20.2 | 28.9 | MIT | 3 months ago | |
| spatie/pest-plugin-test-time | 0.88 | A Pest plugin for controlling time in tests. Freeze or advance Carbon’s current time with testTime()->freeze() and addMinute(), and use the toBeCarbon expectation to assert Carbon date and time values clearly. | 51 | 51 | 7 | 63K | 0 | 18.1 | 48.2 | MIT | 3 months ago | |
| defstudio/pest-plugin-laravel-expectations | 0.86 | A Pest plugin that adds expressive Laravel-specific expectations to your test suite, making assertions for models, HTTP responses, authentication, and common framework behavior cleaner and more readable. Write concise, fluent tests without verbose Laravel checks. | 98 | 99 | 17 | 20K | 2 | 18.7 | 36.9 | MIT | 1 month ago | |
| pestphp/pest-plugin-expectations | 0.86 | An extension for the Pest PHP testing framework that adds extra expectation APIs, letting you write fluent, readable assertions with expect(). It supports custom expectation creation and ships additional built-in expectations for cleaner, more expressive test suites. | 21 | 19 | 7 | 1K | 0 | 0.4 | 17.1 | MIT | 5 years ago | |
| expect/expect | 0.85 | Expect is a lightweight PHP package for expressive expectations and assertions, offering a fluent API to validate values, objects, and responses in tests or application code. It integrates cleanly with Laravel and PHPUnit, making assertions readable and maintainable. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| pestphp/pest-plugin-evals | 0.84 | A Pest PHP plugin for writing and running evals directly inside your test suite. Define evaluation cases, assert on outputs with familiar Pest syntax, and benchmark prompts or AI-powered features alongside your regular tests, with results shown in your normal test output. | 5 | 5 | 2 | 76K | 0 | 18.2 | 63.9 | MIT | 1 month ago | |
| pestphp/pest-plugin-arch | 0.84 | Pest Plugin Arch adds architecture testing to Pest, letting you enforce project boundaries and design rules with simple tests. Ideal for keeping Laravel/PHP codebases consistent and preventing unwanted dependencies. | 44 | 44 | 27 | 10M | 0 | 1.5 | 56.4 | MIT | — | |
| pestphp/pest-plugin-laravel | 0.84 | Pest Plugin for Laravel adds Laravel-specific testing helpers and integration to Pest, making it easy to write expressive, fast tests for Laravel apps while leveraging the familiar Laravel testing ecosystem. | 234 | 240 | 46 | 9M | 0 | 2.6 | 55.3 | MIT | — | |
| igorsgm/laravel-redash | 0.84 | Laravel Redash is a lightweight integration for running Redash queries and fetching dashboards from your Laravel app. Configure Redash credentials, execute saved queries, and access results through a clean, familiar API. | 4 | — | 0 | — | 0 | 0.3 | — | MIT | 1 year ago | |
| pestphp/pest-plugin-type-coverage | 0.83 | Pest Plugin Type Coverage adds type coverage reporting to your Pest test suite, helping you spot untyped or partially typed code paths. Install alongside Pest to track type coverage metrics and improve type safety over time. | 38 | 37 | 20 | 1M | 0 | 1.0 | 55.3 | MIT | — |
How can I help you explore Laravel packages today?