dbellettini / kata-sandbox
Installs: 42
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2
- phpunit/phpunit: ^8.0
README
This is a simple skeleton for starting a TDD Kata in PHP. I find this useful when I develop a new PHP library from scratch.
Getting started
To begin a new TDD Kata just ask composer to create a new project based on this repository. Thanks to @edelprino I added a simple bash script to do it.
curl -sS https://raw.github.com/dbellettini/php-kata-sandbox/master/install | sh
Running tests
PHPUnit is embedded in vendor folder, just type:
cd kata-sandbox && bin/phpunit
Keeping your coding style PSR-{1,2} compliant
Optional step, just copy hooks/pre-commit file to your .git/hooks folder