Skip to content

An example PHP project (powered by Symfony) in order to learn and practice TDD

Notifications You must be signed in to change notification settings

juliolopeztorres/TDD_session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDD Session

An example PHP project (powered by Symfony) in order to learn and practice TDD.

The goal here is to calculate sub matrix with different params such as:

  • Horizontal position of the center square
  • Vertical position of the center square
  • Range / Wide of the sub matrix

I tried to following certain patterns as Clean Code Book [1] suggests and TDD.

Usage

Just run

    cd pathToProject
    
    composer install
    
    ./bin/console server:run

and go to http://127.0.0.1:8000.

You can control the main variables (Middle square due its coordinates, submatrix's range and main matrix's side) inside the Default Controller or by sending the homepage's form.

System Requirements

Dependencies used in this project are:

  • PHP 7.1.4
  • Symfony 3

Check composer.json to get more info

Enjoy!

Thanks to Pedro Gómez [2] for the task's idea!

[1] Clean Code at Amazon Author: Robert Cecil Martin
[2] Pedro Gómez