Now you don't have more excuses to not read the classic.
Important note: This is a work in progress, chapters will be added as I work on them.
The code contained here represents finished chapters, meaning that at the end of Chapter 1 of the book, the PHP equivalent would be in the respective chapter folders (in this case src/TDD/Chapter1 and tests/TDD/Chapter1).
You should use it for comparison reasons only. Write your own version, try again and again. Go for a walk, try once more, go for a run, try again. Still no luck? Do the following:
Clone the repo to your local machine:
git clone git@github.com:guhelski/kent-beck-tdd-php.git
Get Composer and run this in your terminal in the project folder:
php composer.phar install
This will download and set up PHPUnit and you should be ready to run all the tests with:
vendor/bin/phpunit
- Fork the project to your own account.
- Clone the repo to your local machine.
- Create your chapter branch (
git checkout -b chapter15
). - Commit your chapter or changes to existing ones (
git commit -am 'Add Chapter 15'
). - Push your chapter branch to your fork.
- Create a new Pull Request.