Developer testing
Self-contained suite
Section titled “Self-contained suite”Run from the repository root with PHP 8.1 or later:
php tests/regression.php runtime/deckerweb-github-release-updater-v2.phpphp tests/regression.php tests/fixtures/updater-v2-baseline.phpphp tests/class-loading.php tests/fixtures/updater-v2-baseline.php runtime/deckerweb-github-release-updater-v2.php publicphp tests/class-loading.php runtime/deckerweb-github-release-updater-v2.php tests/fixtures/updater-v2-baseline.php privateExpected: 69 current checks, 22 original public checks and the correct old/new capability decisions. These use synthetic WordPress functions and credentials, with no account access.
Real host acceptance
Section titled “Real host acceptance”Use disposable WordPress installations. Test public and private assets, missing assets/source fallback, single/bulk/automatic calls, distinct replacement token, genuine revocation against valid cache, language switches, parallel hosts and old class loading. Reject wrong identity, wrong repository, downgrade, offered-version mismatch, invalid version, missing/incompatible requirements, oversized/missing main file before installed code is replaced. Check activation state and failed-update lifecycle as well as code preservation.
Inspect the actual shipped host ZIP and its requirements. Use multiple supported PHP/database configurations and Multisite. Keep private credentials outside fixtures and redact HTTP monitoring. Native cron and active-plugin fatal-error rollback need separate checks. See validated scope.
2.2.0 regression suite
Section titled “2.2.0 regression suite”Run php tests/security-220.php runtime/deckerweb-github-release-updater-v2.php for all 84 checks, including configuration escaping, malformed contexts, public URL rejection, fresh catalog approval, checksum mismatch and provider failure.
2.2.1 runtime isolation and cleanup
Section titled “2.2.1 runtime isolation and cleanup”Run php tests/cache-cleanup-221.php runtime/deckerweb-github-release-updater-v2.php for 92 regression/security/provider/cache assertions. tests/mixed-loading-221.php is the isolated-process harness for mixed legacy and pinned implementations; run each loading order in a separate PHP process.
Imported from the published component 2.2.1. Original source · Deutsch