An open API service indexing awesome lists of open source software.

https://github.com/paparascal2020/simple-tdd-template-php

A simple TDD enviroment for PHP with sample test
https://github.com/paparascal2020/simple-tdd-template-php

Last synced: 8 months ago
JSON representation

A simple TDD enviroment for PHP with sample test

Awesome Lists containing this project

README

          

# A simple enviroment for PHP TDD

A simple skeleton project to test PHP with PHPUnit.

## First Steps

* Download/Clone the repository

I have included a simple math test just to show its working.
This is what I use for my PHP TDD.

## Create your own tests.

You create the PHPUnit test in the tests directory and the clss for the functions in src folder.

## Run tests
* Open root folder in the terminal/command prompt
* php vendor/bin/phpunit tests --color

## Requirements

* PHP 8
* Composer