pushinbr / pam-native-testing
Deterministic bridge fakes and assertions for PAM Native applications and plugins.
v0.1.1
2026-08-01 04:09 UTC
Requires
- php: ^8.4
- pushinbr/pam-native: ^0.6.1
README
Deterministic, strict bridge testing for PAM Native applications and plugins.
composer require --dev pushinbr/pam-native-testing
$native = NativeTestHarness::install(); $native->succeed('auth.session', 'current', [ 'identifier' => 'user-1', 'state' => 2, ]); // Exercise production PHP code. $native->assertCalled('auth.session', 'current'); $native->assertSatisfied(); NativeTestHarness::uninstall();
Responses can be immediate or deferred. Unstubbed calls fail immediately, and
assertSatisfied() detects unused responses and unflushed completions.