Each assertSame test could be refactored. So many lines for the same general concept.
⚜️ Any ideas on how to solve it?
PHPUnit likely has some method where I can feed in an array of inputs and outputs and play the assertSame method over each entry in that array. Or just use a map function?
🐏 Now: Motivation
⚜️ Where's the issue?
unittests/UserTest.php
And future unit test files.
⚜️ What's the issue?
assertSame
test could be refactored. So many lines for the same general concept.⚜️ Any ideas on how to solve it?
🦄 Later: Solving it
💠 The problem
💠 The method
💠 Notes