Add DX helper aliases + boost line coverage to 95.86% (+5.2pp)#28
Merged
Add DX helper aliases + boost line coverage to 95.86% (+5.2pp)#28
Conversation
Agent-Logs-Url: https://github.com/voku/httpful/sessions/facf86f5-fc33-42ea-98a3-593ea22a9757 Co-authored-by: voku <264695+voku@users.noreply.github.com>
Agent-Logs-Url: https://github.com/voku/httpful/sessions/facf86f5-fc33-42ea-98a3-593ea22a9757 Co-authored-by: voku <264695+voku@users.noreply.github.com>
Agent-Logs-Url: https://github.com/voku/httpful/sessions/facf86f5-fc33-42ea-98a3-593ea22a9757 Co-authored-by: voku <264695+voku@users.noreply.github.com>
Agent-Logs-Url: https://github.com/voku/httpful/sessions/facf86f5-fc33-42ea-98a3-593ea22a9757 Co-authored-by: voku <264695+voku@users.noreply.github.com>
Agent-Logs-Url: https://github.com/voku/httpful/sessions/facf86f5-fc33-42ea-98a3-593ea22a9757 Co-authored-by: voku <264695+voku@users.noreply.github.com>
Agent-Logs-Url: https://github.com/voku/httpful/sessions/facf86f5-fc33-42ea-98a3-593ea22a9757 Co-authored-by: voku <264695+voku@users.noreply.github.com>
Agent-Logs-Url: https://github.com/voku/httpful/sessions/facf86f5-fc33-42ea-98a3-593ea22a9757 Co-authored-by: voku <264695+voku@users.noreply.github.com>
…(+5.2pp) Agent-Logs-Url: https://github.com/voku/httpful/sessions/32a1b86b-1aa7-4348-af78-90df82134dbf Co-authored-by: voku <264695+voku@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
voku
April 30, 2026 21:40
View session
Apply fixes from StyleCI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two related improvements: expressive fluent aliases for every major request feature, and a comprehensive test suite that raises line coverage from 90.66% → 95.86%.
Helper method aliases (
src/Httpful/Request.php)Adds
doNotFollowRedirects()/followRedirects()style positive/negative pairs for every major feature area, so callers never need to remember boolean flags:Covers all advertised feature groups:
withAutoParse(),doNotAutoParse(),withAutoSerialize(),doNotAutoSerialize()withBasicAuth(),withBearerToken(),withClientSideCertificateAuth()withRetryOnConnectionRefused(),withRetryOnAllErrors(),withRetryDelay(),withRetryMaxTime()withStrictSsl()/withoutStrictSsl(),withTlsVersion(),withCaBundle(),withPinnedPublicKey()withCookieFile(),withCookieJar()withHttp2PriorKnowledge(),withHttp3(),withHttp3Only()withAltSvcCache(),withHstsCache()withNoProxy(),withProxyTunnel(),withResolve(),withConnectTo()withTransferMetadata(),withoutTransferMetadata()withTemplate(),withoutTemplate()withDownload(),withoutDownload()withParallelExecution()(initiates multi-curl)Test coverage (
tests/Httpful/CoverageTopUpTest.php)New 94-test file targeting previously uncovered branches:
ClientClientMultiadd_request()with non-RequestPSR-7 adapter branchRequest_setBodywithStreamInterface/ duplicate-key,initMultiall four callback if/else branches,_errorwith PSR-3 logger and callable global handler,wait(false)ErrorExceptioncatchXmlMimeHandlerStreamUriResolverresolve()with empty base path + non-empty authority;relativize()same-directory edge caseMultiCurlPromisethen()complete & error closure bodies,wait(false)catch via double-addFixture files added:
tests/static/test.xml,test.csv,test.html,test_form.txt.This change is