Testare un MVC custom con PHPUnit — articolo

> Testare un MVC custom con PHPUnit

Quick note su come sono organizzati i test nel framework: unit, integration e coverage.

Luigi Iadicola
~1 min lettura
#PHP #Testing #Quality
Testare un MVC custom con PHPUnit
Testare un MVC custom con PHPUnit

635 test e counting

La test suite del framework conta oltre 635 test organizzati per area: Unit per helper, modelli e query builder; Integration per il flusso completo con database reale. Tutti girano con php soft test o direttamente con vendor/bin/phpunit.

Testare un framework custom e doppiamente importante: non c e una community che trova i bug per te. Ogni feature nuova arriva con i suoi test, e Rector + PHPStan completano il quadro della qualita del codice.

altri articoli
progetti correlati