feat: PHPUnit Test-Infrastruktur und Router-Tests #64
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/phpunit-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Zusammenfassung
Fügt PHPUnit-Test-Infrastruktur hinzu und legt erste Unit-Tests für
App\Core\Routeran.Änderungen
vendor/und.phpunit.cache/hinzugefügtTest-Abdeckung (Router)
addRoute()dispatch()– URL-Normalisierungdispatch()– Direct Matchdispatch()– Legacy Redirectsdispatch()– Fehlerbehandlungdispatch()– Controller-InvocationTest-Ergebnis
Annahmen
TestableRouterals Subclass fängtheader()/exit()/echo-Side-Effects abDummyControllerals Minimal-Controller zum Testen von dispatch