why not reuse the web of concepts which you've already invented? You have: Game, Mark, Player.
This method could easily return a Player instance, and the assertion should compare whatever it returns with the $playerX you already have in your test.
The whole point of OOP is to invent concepts and how they interact and to reuse them, not to introduce new concepts which can already be modelled with the existing ones.
Instead of returning a magic constant like
'player0'
:why not reuse the web of concepts which you've already invented? You have: Game, Mark, Player.
This method could easily return a Player instance, and the assertion should compare whatever it returns with the
$playerX
you already have in your test.The whole point of OOP is to invent concepts and how they interact and to reuse them, not to introduce new concepts which can already be modelled with the existing ones.