This repository is mean to serve as a reference for those seeking to begin writing or get better at writing automated tests. For the purposes of Illustration, the simple problem of FizzBuzz is used as an illustration. The purpose isn't to example the application, but to learn about testing practices.
- PHP 5.5+
- Installation of composer
- Mysql install
Note: This repository comes with PHPUnit defined as a dependency in the
composer.json
. In the real world, you should have PHPUnit installed globally on your system, as this is a test suite run-time dependency and not a dependency of of the project it self. There are other test runners out there and others might prefer to use one of them instead.
- Clone repository
cp .env.dist .env
- Create a mysql DB to use
- Fill in your DB credentials and DB name in the newly created
.env
file composer install