A simple skeleton project to test PHP with PHPUnit.
- Download/Clone the repository
I have included a simple math test just to show its working. This is what I use for my PHP TDD.
You create the PHPUnit test in the tests directory and the clss for the functions in src folder.
- Open root folder in the terminal/command prompt
- php vendor/bin/phpunit tests --color
- PHP 8
- Composer