php
php copied to clipboard
Bowling - inline test helper functions setUp and rollMany
In this forum thread once again a student struggled with DRY'ed tests. We should not hide test details behind helper functions like rollMany() or setUp().
Instead inline all the details into the individual test methods and make students see exactly what is happening, so they can focus on solving the exercises and not be distracted by analysing helper functions or PHP unit test automations.