PHP Architect · Vol 20, Issue 2 · February 2021
Sustainable PHP: Testing Business Rule
by Edward Barnard
There’s an old joke that runs, “We just got a new project. You two start coding while I go find out the requirements.” This month we talk about evaluating and implementing business rules, thus meeting project requirements. We focus on discerning what’s important and what isn’t, and recognizing interactions that can quickly get out of hand. For our working example, we’ll be evaluating standard poker hands. Well-known card games make great examples because they’re easily understood by non-technical people, and it’s instantly apparent whether something is modeled correctly or not.
The full article is in PHP Architect Vol 20, Issue 2. Subscribe to read it and every new issue.