mattiasgeniar/phpunit-query-count-assertions
Add PHPUnit/Pest assertions to count and analyze SQL queries in tests. Catch N+1 issues, duplicate queries, slow queries, missing indexes (EXPLAIN), row count problems, and Laravel lazy loading. Supports Laravel 11/12, Doctrine DBAL 4, and Phalcon 6+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| lastdragon-ru/phpunit-extensions | 0.79 | PHPUnit extensions for PHP projects, adding extra test utilities and helpers to streamline assertions, fixtures, and test setup. Designed to integrate cleanly with PHPUnit and improve developer productivity in automated testing workflows. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| phperf/phpunit | 0.78 | phperf/phpunit is a lightweight PHPUnit extension aimed at profiling and performance measurement during test runs. Add simple hooks to capture timing and resource usage so you can spot slow tests and track performance regressions over time. | 0 | 0 | 0 | 233 | 0 | 0.9 | 32.7 | NOASSERTION | 4 years ago | |
| jasonmccreary/laravel-test-assertions | 0.75 | Adds a trait of extra PHPUnit assertions for Laravel testing. Confirm controllers/actions and named routes use specific FormRequest validation or middleware, compare validation rules (subset or exact), check rule instances, and assert view data is explicitly null. | 352 | 352 | 36 | 117K | 2 | 25.6 | 39.5 | — | 2 months ago | |
| testo/assert | 0.75 | 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 | 2K | 0 | 0.0 | 43.6 | — | — | |
| codeception/lib-asserts | 0.75 | Lightweight assertion library used by Codeception. Provides clear, dependency-free assert helpers for writing expressive tests in PHP, with informative failure messages and easy integration into any PHPUnit-style workflow. | 104 | 104 | 5 | 1M | 1 | 19.9 | 61.8 | MIT | 4 months ago | |
| phpunit/phpunit | 0.74 | PHPUnit is the de facto unit testing framework for PHP, based on the xUnit architecture. Run tests, make assertions, and generate reports via PHAR or Composer-installed tooling. Maintained by Sebastian Bergmann and contributors. | 20,038 | 20,551 | 2,223 | 14M | 19 | 80.9 | 54.5 | BSD-3-Clause | 1 week ago |
How can I help you explore Laravel packages today?