Unit testing (PHPUnit, PEST)
Note: In CodinGame puzzles the provided test cases already act as some kind of unit testing, so this chapter is not too relevant for CG. Therefore, only links are provided.
PEST is a relatively new testing framework for PHP. It is not replacing, but built on top of PHPUnit. It provides a simpler, more intuitive syntax. You can get it from its website.