Skip to content

CodiumTeam/tdd-training-php

Repository files navigation

Installation

  1. Download the code using GIT or with the downloading the zip link
  • Go into the folder of the kata you want to practice. Eg: cd fizz-buzz

First option: I already have installed PHP 7 and composer

make dependencies
make tests
make coverage

Second option: I already have installed docker

make docker-build
make docker-tests
make docker-coverage

Katas

Fizz Buzz

Good kata to start doing TDD

Roman numerals

Easy kata to continue with TDD

Password validator

Easy kata to practice the importance of the test order.

Print date

Kata to start practicing with mocks and stubs.

User registration

Kata to practice tests doubles

Coffee Machine

Good kata to practice outside-in TDD.