I found on my old drive some link for some Test for a random job who asks for a TDD heavy developer, so I decide to try to learn how to write and code TDD.
I chose to use Lumen because I work with the framework on a daily basis, so it makes a lot easier. Here is the most important about the code:
- PHPUnit
Used to make all tests run. I was about to use the Codeception, but PHPUnit is already native on Laravel/Lumen, so is a quite easy to run everything
Ok, now let's install and try it.
💡 After your project is cloned, you must have installed the composer on your machine to download all dependencies. Entering the command below will begin to download the dependencies:
composer install
With everything set up, you can run the game using the command below (Remember to use this command on the project folder):
vendor/bin/phpunit --testdox
This software was created for study purposes only. Feel free to try it out.