Add PHP conformance runner - #26
Draft
ranael-garem wants to merge 1 commit into
Draft
Conversation
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.
Adds the PHP conformance runner (
conformance/run.php) — the third SDK to join the cross-SDK behavioral-parity suite alongside TypeScript and Python.The runner reads one scenario JSON on stdin, drives the real SDK entrypoints, and prints a normalized decision on stdout, byte-identical in shape to the TS/Python runners. All four surfaces are covered:
LicenseTokenVerifier->verify()directly (the publicSupertabConnect::verify()returns only a human string; the suite needs theLicenseTokenInvalidReasonenum value).SupertabConnect::handleRequest()via aRequestContextbuilt from the scenario headers; emitsaction/status/ the four RSL headers.LicenseXmlParser::parseContentElements→ContentMatcher::findBestMatch.SupertabConnect::obtainLicenseToken(success →mint, throw →error).Notes:
src/andtests/, sophpcs/phpunitdon't scan it — it can't affect this repo's own CI gate. It's exercised by the conformance orchestrator (a separate repo).localhost:9999; base URLs are injected, no SDK network behavior changes.Paired with the conformance-repo PR that registers the
phprunner and records its divergences. A dedicated CI job that runs the corpus on every PR to this repo is a follow-up (mirrors the Python SDK's setup).