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+.
None
|
Package
|
Constraint
|
|---|---|
| doctrine/dbal | ^4.0 |
| larastan/larastan | ^3.0 |
| laravel/pint | ^1.18 |
| orchestra/testbench | ^9.0|^10.0 |
| phalcon/phalcon | ^6.0 |
| phpunit/phpunit | ^11.0 |
How can I help you explore Laravel packages today?