tdd-php icon indicating copy to clipboard operation
tdd-php copied to clipboard

Test Driven Development by Example (Kent Beck) PHP Code samples

PHPUnit

TDD PHP

Test Driven Development by Example (by Kent Beck) PHP Code samples

Requirements

  1. PHP 8.0 or above
  2. Composer

Setup

Run composer install.

How to use this project

Each chapter contains its own folder. Each time EITHER the test OR the implementing class are modified in the book, a new folder was created. The changes are linear. When either the implementation or test file is modified, a new folder (A,B,C etc) is created. Any test that will fail is marked as skipped. This ensures that ci will still pass every push.

Contributors