Back
Close

PHP Dev Tools (for CodinGame or elsewhere)

TBali
14.7K views

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

PHPUnit logo

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

PEST logo

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.

Useful links

Coming next

Generating documentation

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io