PHP Dev Tools (for CodinGame or elsewhere)

TBali
16.7K views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

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

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content