PHP Dev Tools (for CodinGame or elsewhere)
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.
PHPUnit became the de-facto standard for creating and running unit tests for any php project. You can get it from its website. It has a thorough documentation.
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.
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.