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
- Host: GitHub
- URL: https://github.com/paparascal2020/simple-tdd-template-php
- Owner: PapaRascal2020
- Created: 2022-06-25T14:36:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-25T14:43:43.000Z (almost 4 years ago)
- Last Synced: 2025-01-02T18:20:30.104Z (over 1 year ago)
- Language: PHP
- Size: 1.06 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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