PHP Architect · Vol 21, Issue 3 · March 2022
DDD Alley: Better Late Than Never
by Edward Barnard
Last month, we created "role-based lookups" with "When You Know the Pattern." Database-related code can be difficult to unit test, and once unit tests are written, they can be difficult and time-consuming to maintain. This month we'll carefully look at this problem and possible solutions. We'll walk through the test suite after extensive refactoring to keep it clear and expressive.
The full article is in PHP Architect Vol 21, Issue 3. Subscribe to read it and every new issue.