PHPackages                             heru-luin/tdd-sample-project - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. heru-luin/tdd-sample-project

ActiveProject[Testing &amp; Quality](/categories/testing)

heru-luin/tdd-sample-project
============================

A TDD project starting point

v1.0(6y ago)014MITShellPHP &gt;=7.1CI failing

Since Sep 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Heru-Luin/tdd-sample-project)[ Packagist](https://packagist.org/packages/heru-luin/tdd-sample-project)[ Docs](https://github.com/Heru-Luin/tdd-sample-project)[ RSS](/packages/heru-luin-tdd-sample-project/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

TDD Sample Project
==================

[](#tdd-sample-project)

This repository contains a starting point for projects using Test Driven Development (TDD).

Repository status
-----------------

[](#repository-status)

[![Build Status](https://camo.githubusercontent.com/dcc96b7a115d29e9a328df5c8a3a8e44c12b3a8160f06398ab0c1b75f3e6681c/68747470733a2f2f7472617669732d63692e6f72672f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Heru-Luin/tdd-sample-project)[![codecov](https://camo.githubusercontent.com/62d9d049c1fae4ee1bb69600ce3619502291a7ea3bd623052b7a1525336c18be/68747470733a2f2f636f6465636f762e696f2f67682f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Heru-Luin/tdd-sample-project)[![Github All Releases](https://camo.githubusercontent.com/fb3f5ee1689b8177ed47c312a2701ab0811fd85ed4e332a80be95f16d1d84f57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742f746f74616c2e737667)](https://camo.githubusercontent.com/fb3f5ee1689b8177ed47c312a2701ab0811fd85ed4e332a80be95f16d1d84f57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742f746f74616c2e737667)[![GitHub tag](https://camo.githubusercontent.com/d20310ccd94002becc9fdf18dbafd752c581d6bc977c8b9ee724b721ddf0332c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742e737667)](https://camo.githubusercontent.com/d20310ccd94002becc9fdf18dbafd752c581d6bc977c8b9ee724b721ddf0332c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742e737667)

Packagist
---------

[](#packagist)

[![Packagist Version](https://camo.githubusercontent.com/72b875e0d909c63a11dc148a76be93a966a1ffc3a82d4477c44494234d17e628/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742e737667)](https://packagist.org/packages/Heru-Luin/tdd-sample-project)[![PHP from Packagist](https://camo.githubusercontent.com/318726768a37417117d33d00d09931de78a9dd8e43abca1b7b0b84e39d8b99fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742e737667)](https://camo.githubusercontent.com/318726768a37417117d33d00d09931de78a9dd8e43abca1b7b0b84e39d8b99fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742e737667)[![Packagist](https://camo.githubusercontent.com/ef39c831e480c9c38f85c4a73152913d955b903ab774f4028703516e7c5353fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742e737667)](https://camo.githubusercontent.com/ef39c831e480c9c38f85c4a73152913d955b903ab774f4028703516e7c5353fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f486572752d4c75696e2f7464642d73616d706c652d70726f6a6563742e737667)

Installation
------------

[](#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
-----

[](#usage)

Follow the 3 TDD steps :

### 1. RED

[](#1-red)

Create a failing test.
Validate this step by using `bin/red.sh`

### 2. GREEN

[](#2-green)

Make tests pass.
Validate this step by using `bin/green.sh`

### 3. REFACTOR

[](#3-refactor)

Refactor your code until it's clean.
Validate this step by using `bin/refactor.sh`

### 4. Repeat

[](#4-repeat)

Go to step 1.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2472d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4009826?v=4)[Heru-Luin](/maintainers/Heru-Luin)[@Heru-Luin](https://github.com/Heru-Luin)

---

Top Contributors

[![Heru-Luin](https://avatars.githubusercontent.com/u/4009826?v=4)](https://github.com/Heru-Luin "Heru-Luin (11 commits)")[![IngeniozIT](https://avatars.githubusercontent.com/u/41050198?v=4)](https://github.com/IngeniozIT "IngeniozIT (4 commits)")

---

Tags

TDD

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/heru-luin-tdd-sample-project/health.svg)

```
[![Health](https://phpackages.com/badges/heru-luin-tdd-sample-project/health.svg)](https://phpackages.com/packages/heru-luin-tdd-sample-project)
```

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k516.1M26.2k](/packages/mockery-mockery)[codeception/codeception

All-in-one PHP Testing Framework

4.9k88.9M3.2k](/packages/codeception-codeception)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k41.3M39.0k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k37.2M3.2k](/packages/phpspec-phpspec)[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k8.9M407](/packages/codedungeon-phpunit-result-printer)[atoum/atoum

Simple modern and intuitive unit testing framework for PHP 8.0+

1.4k2.7M317](/packages/atoum-atoum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
