Avoid raw curl calls in PHP unit tests
curl_exec in tests should target doubles or local fixtures.
Search documentation pages and rules
Search documentation pages and rules
curl_exec in tests should target doubles or local fixtures.
php.testing.curl-in-unit-testLive HTTP couples CI to the network.
Wrap HTTP behind an injectable client and replace curl usage with doubles in unit tests.
The generated metadata points to critiq-rules/libs/rules/catalog/rules/php/php.testing.curl-in-unit-test.rule.yaml.