Search for a command to run...
PHP testing framework built on PHPUnit with a focus on simplicity and readable syntax. Uses an expressive, RSpec and Jest-inspired API that reduces boilerplate and makes tests faster to write and easier to maintain. Keeps full PHPUnit compatibility so existing tests run without changes.
Endorsed by Laravel creator Taylor Otwell. Pest stands out from raw PHPUnit through a modern API, clear failure output, and bundled tooling: parallel execution, coverage, watch mode, architecture testing, profiling, and snapshot testing. Version 4 adds built-in browser testing via Playwright, allowing end-to-end tests in the same suite without a separate toolchain.
Key capabilities:
it() and expect() for minimal boilerplateSuited for unit and integration testing in Laravel, Symfony, or plain PHP projects. Fits TDD workflows and CI pipelines. Developers use it for API testing, feature tests with factories, and browser-based UI tests, all in one framework.