Skip to content

Chemaclass/php-tdd-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRACTICAL TDD WORKSHOP: EMBRACING COLLABORATIVE LEARNING THROUGH PAIR PROGRAMMING

This is a scaffolding kata setup to practice TDD in PHP.

  • Working example in the src and tests folder.
  • PHPUnit installed.
    • composer test

Setup

You can either install the dependencies locally or use the provided docker container:

make build
make test

Test-Driven Development

TDD

The 3-repetition rule on TDD - Triangulation

Triangulation

Example mapping

Example Mapping

Test Desiderata

Example Mapping

Katas

  • TDD Cycle
  • Baby steps
  • Triangulation
  • Example Mapping
  • TDD Cycle
  • Baby steps
  • Triangulation
  • Test desiderata
  • CRC cards
  • Mock it if you own it
  • Collaborators
  • Solitary or Sociable test
  • Triangulation
  • Test desiderata
  • CRC cards
  • Mock it if you own it
  • Collaborators
  • Triangulation
  • Test desiderata

Resources

Books

  • Agile Technical Practices Distilled by Pedro M Santos (Amazon)
  • Test-Driven Development by Example by Kent Beck (Amazon)
  • Refactoring by Martin Fowler (Amazon)
  • Growing Object-Oriented Software, Guided by Tests by Steve Freeman, Nat Pryce (Amazon)
  • Working Effectively with Legacy Code by Michael C. Feathers (Amazon)

Videos

Posts

About

A setup for PHP code katas

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •