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 è doppiamente importante: non c'è una community che trova i bug per te. Ogni feature nuova arriva con i suoi test, e Rector + PHPStan completano il quadro della qualità del codice.
原文:https://www.a8q9.cn/en/article/testare-un-mvc-custom-con-phpunit-03c580.html