pushinbr / pam-http-testing
In-memory HTTP testing utilities for Pam applications.
Requires
- php: ^8.4
- pushinbr/pam-contracts: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
PAM HTTP Testing
Exercise your HTTP application without opening a socket.
In-memory requests, fluent response assertions, fakes, and deterministic test helpers for PAM HTTP applications.
Documentation · Why this exists · What you can build · Quick start · Issues
Why this exists
In-memory requests, fluent response assertions, fakes, and deterministic test helpers for PAM HTTP applications.
| Role | Testing toolkit |
| Execution path | PHPUnit-compatible in-memory HTTP harness |
| This repository owns | Application-level HTTP test ergonomics |
| Boundary | Transport, TLS, proxy, and kernel behavior still require integration tests |
What you can build
- Fast controller and middleware tests
- JSON, headers, status, and validation assertions
- Regression suites for routes without network flakiness
Quick start
pam composer require --dev pushinbr/pam-http-testing
The PAM documentation covers prerequisites, production setup, and the complete workflow. PAM projects keep normal manifests and lockfiles; product features stay in the package that owns them.
Fast in-memory tests for applications built with pushinbr/pam-http.
See it in action
$client = new Pam\Http\Testing\TestClient($app); $client->get('/users/42') ->assertSuccessful() ->assertJsonPath('id', '42');
License
Free and open-source under the Apache License 2.0. You may use, modify, and distribute this package for any purpose, including commercially.