Skip to content

Feature/functional coverage tests - #115

Merged
iki-cz merged 5 commits into
masterfrom
feature/functional-coverage-tests
Jul 22, 2026
Merged

Feature/functional coverage tests#115
iki-cz merged 5 commits into
masterfrom
feature/functional-coverage-tests

Conversation

@SimonZanta

Copy link
Copy Markdown
Collaborator

No description provided.

SimonZanta and others added 5 commits July 21, 2026 12:41
Rewrite tests/Support/Fixture/router.php for maintainability (named
helpers, sectioned routes, header comment explaining the fixture's
purpose) with identical behaviour - all fixture tests still pass.

Remove FixtureTransportCest::sendsCloudflareAccessHeaders and its
$_ENV unset in _after(): it mutated process-global $_ENV to force the
APPLICATION_ENV=sdk-github branch, which leaked across suites and broke
HelpersCest's env read.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop the fixture API server (IntegrationApi + router.php) that booted a
real php -S process to return canned Comgate responses. Each functional
test now drives Client/ClientTerminal through a small FakeTransport
double that queues its own responses and records what the SDK sent.

- Add tests/Support/FakeTransport.php (ITransport double)
- Rewrite the fixture Cests as *FunctionalCest using per-test mocks
- MOTO test owns its RSA key pair and decrypts what the SDK sent
- Remove the transport-level and download-subprocess tests that could
  not be meaningfully mocked

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@iki-cz
iki-cz merged commit 1adf507 into master Jul 22, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants