项目作者: juliolopeztorres

项目描述 :
An example PHP project (powered by Symfony) in order to learn and practice TDD
高级语言: PHP
项目地址: git://github.com/juliolopeztorres/TDD_session.git
创建时间: 2017-04-19T11:49:58Z
项目社区:https://github.com/juliolopeztorres/TDD_session

开源协议:

下载


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

  1. cd pathToProject
  2.  
  3. composer install
  4.  
  5. ./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