Repository navigation
test(php): check the removed csvOutput() and the curl helper by behaviour - #90
Open
somethingwithproof wants to merge 1 commit into
Open
somethingwithproof wants to merge 1 commit into
somethingwithproof wants to merge 1 commit into
Conversation
…iour Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
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.



Problem
CsvEscapeTestfrom #89 searches the source ofcontrollers/controller.phpforcsvOutputand the source oftests/E2E/support/server.phpforcurl_close. A comment or a rename defeats both checks, and neither shows that the helper runs without a deprecation on PHP 8.5.Change
Controllerclass whethercsvOutput()exists.npc_http()in a child PHP process whose error handler is installed first, against a local built-in server, and reads back the deprecations it raised, together with the body and theLocationheader it returned.Follow-up to #89. It changes only a test; the CHANGELOG entry added in #89 still describes the change.
Verification
controllers/controller.phpandtests/E2E/support/server.phptaken from before fix(php): remove dead csvOutput() and deprecated curl_close() #89, on PHP 8.5, both tests fail (the second withFunction curl_close() is deprecated since 8.5). With the current files both pass.