Skip to content

ext/standard: add tests for HTTP fopen wrapper - #23557

Open
Sjord wants to merge 4 commits into
php:masterfrom
Sjord:test-http-fopen-wrapper
Open

ext/standard: add tests for HTTP fopen wrapper#23557
Sjord wants to merge 4 commits into
php:masterfrom
Sjord:test-http-fopen-wrapper

Conversation

@Sjord

@Sjord Sjord commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More tests make sense, also means the refactoring is more likely to be correct.

@NickSdot

NickSdot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Nice @Sjord! The PR increases coverage by 125 lines and 108 branches. Though, some things were already covered. If we would want to be pedantic we would want to avoid that. But it's more like a nice to have. If you want I can propose something, please let me know.

FYI: the last commit sneaked in a space after "# URI parser:", that's the failure.

@Sjord

Sjord commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

@NickSdot Thanks. It seems that at least ext/standard/tests/http/http_auth_userinfo.phpt does not improve coverage. I'll remove that. Did you have any other tests in mind that should go?

@Sjord
Sjord marked this pull request as ready for review September 4, 2026 10:06
@Sjord
Sjord requested a review from bukka as a code owner September 4, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants