Skip to content

v1.0.5 — Breaking: PHP 8.2 + PHPUnit 11 + erweiterte Testsuite

Choose a tag to compare

@malziland malziland released this 19 Apr 11:49
· 5 commits to main since this release

Breaking

  • PHP-Mindestanforderung 7.4 → 8.2. Plugin-Header, composer.json und readme.txt sind jetzt konsistent auf 8.2. WordPress blockiert die Aktivierung auf älteren PHP-Versionen mit eigenem Hinweis. Supporte PHP-Matrix: 8.2 / 8.3 / 8.4 (alle drei in CI getestet). Vor dem Update die PHP-Version des Hosts prüfen.

Geändert

  • PHPUnit 9.6 → 11.5. Alle 12 bestehenden Test-Dateien von @covers-Docblocks auf PHP-8-Attribute (#[CoversClass] / #[CoversMethod]) migriert — null Deprecations mehr.
  • CI-Matrix auf PHP 8.2 / 8.3 / 8.4 umgestellt.

Hinzugefügt

  • tests/unit/SeafileApiTest.php — 17 HTTP-gemockte Tests für SBU_Seafile_API (Token-Cache, Library-Resolve, Upload-/Download-Link, Directory-Ops).
  • tests/unit/LogSanitizerTest.php — 12 Tests für den anonymisierten Log-Export (Host-, UUID-, Ordner-, E-Mail-, IP-, Nonce-Maskierung) plus End-zu-End-Leak-Check.
  • Neue Screenshots für readme.txt und README.md: Einstellungsseite (Backup-Browser + Aktivitätsprotokoll) und Dashboard-Widget mit Demo-Daten.

Dokumentation

  • README.md, ARCHITECTURE.md, CONTRIBUTING.md auf den aktuellen Code-Stand gezogen: Modul-Boundaries-Tabelle, Test-Surface-Tabelle, reproduzierbarer Release-Workflow (rsync + zip), explizite Quality-Gate-Befehle.

Tests

121 Tests / 333 Assertions (vorher 92 / 263). PHPCS (WordPress-Standard, Plugin-Source), PHPStan Level 5 und PHPUnit 11 grün auf PHP 8.2 / 8.3 / 8.4.

Upgrade-Hinweis

Vor dem Update die PHP-Version des Hosts prüfen (mindestens 8.2). Danach keine manuelle Migration nötig — Upload über Plugins → Hochladen in WP-Admin.