oliverklee / tdd-seed
Code for workshops on PHPUnit
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 5
Forks: 0
Open Issues: 1
Type:project
Requires
- php: ~5.6.0 || ~7.0.0 || ~7.1.0
Requires (Dev)
- mikey179/vfsstream: ^1.6.4
- phpunit/phpunit: ^6.0.13 || ^5.7.19
This package is auto-updated.
Last update: 2024-10-29 04:47:46 UTC
README
This project contains code to be used in my TDD workshops.
Installation
PHP
Local PHP
You will need a local PHP installation with Composer.
If you would like to use Infection for mutation testing, you will also need Xdebug.
Installing the Composer packages
Run composer install
to install the required Composer packages.
Having a test list
For your test list, please create a fill test-list.txt
.
Git will ignore it for you.
Mutation testing
You can run the mutation testing with Infection to catch missing test cases:
vendor/bin/infection
Infection then will log its findings into the file infection.log
.
About me (Oliver Klee)
I am the maintainer of the PHPUnit TYPO3 extension, which is available in the TYPO3 extension repository (TER).
You can book me for workshops at your company.
I also frequently give workshops at the TYPO3 Developer Days.
More Documentation
Other example projects
- Selenium demo for using Selenium with PHPUnit
- Coffee example is my starting point for demonstrating TDD
- Tea example for unit tests for extbase extensions for TYPO3 CMS