Old drivers,
php中一些和數(shù)據(jù)庫(kù)操作緊密相關(guān)的邏輯方法,
實(shí)際結(jié)果體現(xiàn)在數(shù)據(jù)庫(kù)中,方法的返回值并不能體現(xiàn)內(nèi)部的邏輯
如何對(duì)其進(jìn)行自動(dòng)化的單元測(cè)試phpunit。
A good programmer must be able to make good unit tests
It is reflected in the database, then test whether the data in the database is correct. .
phpunit also has database testing https://phpunit.de/manual/cur...