pushinbr/pam-native-testing

Deterministic bridge fakes and assertions for PAM Native applications and plugins.

Maintainers

Package info

github.com/push-in/pam-native-testing

pkg:composer/pushinbr/pam-native-testing

Transparency log

Statistics

Installs: 37

Dependents: 6

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.1 2026-08-01 04:09 UTC

This package is auto-updated.

Last update: 2026-08-01 06:05:05 UTC


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.