Avoid sleep in PHP unit tests
sleep() in tests slows CI and hides synchronization bugs.
Search documentation pages and rules
Search documentation pages and rules
sleep() in tests slows CI and hides synchronization bugs.
php.testing.sleep-in-unit-testPrefer deterministic waits or clock injection.
Inject a clock, shorten waits, or move timing coverage to integration suites.
The generated metadata points to critiq-rules/libs/rules/catalog/rules/php/php.testing.sleep-in-unit-test.rule.yaml.