heru-luin / tdd-sample-project
A TDD project starting point
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:Shell
Type:project
Requires
- php: >=7.1
Requires (Dev)
- phan/phan: ^2.2
- phpunit/phpunit: ^7
- squizlabs/php_codesniffer: *
This package is auto-updated.
Last update: 2024-04-24 00:33:17 UTC
README
This repository contains a starting point for projects using Test Driven Development (TDD).
Repository status
Packagist
Installation
composer create-project heru-luin/tdd-sample-project --stability dev
cd tdd-sample-project
chmod +x bin/red.sh bin/green.sh bin/refactor.sh
Usage
Follow the 3 TDD steps :
1. RED
Create a failing test.
Validate this step by using bin/red.sh
2. GREEN
Make tests pass.
Validate this step by using bin/green.sh
3. REFACTOR
Refactor your code until it's clean.
Validate this step by using bin/refactor.sh
4. Repeat
Go to step 1.